Searched refs:hostid (Results 1 - 8 of 8) sorted by relevance

/lxc/hooks/
H A Dubuntu-cloud-prep41 local long_opts="auth-key:,cloud,help,hostid:,name:,nolocales:,create-etc-init,userdata:,vendordata:,verbose"
53 local vendordata="" userdata="" hostid="" authkey="" locales=1 cloud=0
62 -i|--hostid) hostid="$next";;
112 if [ -z "$hostid" ]; then
113 hostid=$(uuidgen | cut -c -8) && [ -n "$hostid" ] ||
114 { error "failed to get hostid"; return 1; }
119 echo "instance-id: lxc-$hostid" > "$seed_d/meta-data" ||
/lxc/src/lxc/tools/
H A Dlxc_usernsexec.c170 newmap->hostid = host_id;
230 newmap->hostid = atol(p1+1);
/lxc/src/lxc/
H A Dconf.h169 unsigned long hostid, nsid, range; member in struct:id_map
H A Dutils.c1038 uid_t nsid, hostid, range; local
1044 if (sscanf(line, "%u %u %u", &nsid, &hostid, &range) != 3)
1046 if (hostid <= orig && hostid + range > orig) {
1047 nsid += orig - hostid;
H A Dconfile.c1509 unsigned long hostid, nsid, range; local
1533 ret = sscanf(value, "%c %lu %lu %lu", &type, &nsid, &hostid, &range);
1537 INFO("read uid map: type %c nsid %lu hostid %lu range %lu", type, nsid, hostid, range);
1545 idmap->hostid = hostid;
H A Dconf.c3406 map->hostid, map->range,
3451 *val = map->hostid;
3465 if (id >= map->hostid && id < map->hostid + map->range)
3466 return (id - map->hostid) + map->nsid;
4516 entry->hostid = (unsigned long) uid;
4535 entry->hostid = (unsigned long) gid;
H A Dlxccontainer.c1213 map->nsid, map->hostid, map->range);
/lxc/templates/
H A Dlxc-ubuntu-cloud.in149 options=$(getopt -o a:hp:r:n:Fi:CLS:T:ds:u: -l arch:,help,rootfs:,path:,release:,name:,flush-cache,hostid:,auth-key:,cloud,no_locales,tarball:,debug,stream:,userdata:,vendordata:,mapped-uid:,mapped-gid: -- "$@")
214 -i|--hostid) cloneargs[${#cloneargs[@]}]="--hostid=$2"; shift 2;;

Completed in 51 milliseconds