Otherwise you get 'lxc.utsname =' in config, instead of the actual hostname being filled in.
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/850205 Index: lxc/src/lxc/lxc-clone.in =================================================================== --- lxc.orig/src/lxc/lxc-clone.in 2011-09-14 15:04:30.459058616 -0500 +++ lxc/src/lxc/lxc-clone.in 2011-09-14 15:05:17.179057825 -0500 @@ -137,6 +137,8 @@ exit 1 fi +hostname=$lxc_new + trap "${bindir}/lxc-destroy -n $lxc_new; echo aborted; exit 1" SIGHUP SIGINT SIGTERM mkdir -p $lxc_path/$lxc_new @@ -184,7 +186,6 @@ fi echo "Updating rootfs..." -hostname=$lxc_new # so you can 'ssh $hostname.' or 'ssh $hostname.local' if [ -f $rootfs/etc/dhcp/dhclient.conf ]; then ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerry® mobile platform with sessions, labs & more. See new tools and technologies. Register for BlackBerry® DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 _______________________________________________ Lxc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lxc-users
