[Lxc-users] [PATCH] Define $hostname before its first use

Daniel Lezcano daniel.lezcano at free.fr
Mon Oct 24 13:03:38 UTC 2011


On 09/14/2011 10:27 PM, Serge E. Hallyn wrote:
> 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

Hi Serge,

I was not able to apply this patch, it fails with:

dlezcano at monster:~/work/src/lxc$ quilt push -f
Applying patch lxc-users-define-$hostname-before-its-first-use.patch
patching file src/lxc/lxc-clone.in
Hunk #1 succeeded at 147 (offset 10 lines).
Hunk #2 FAILED at 186.
1 out of 2 hunks FAILED -- saving rejects to file src/lxc/lxc-clone.in.rej
Applied patch lxc-users-define-$hostname-before-its-first-use.patch
(forced; needs refresh)
dlezcano at monster:~/work/src/lxc$ cat src/lxc/lxc-clone.in.rej
--- src/lxc/lxc-clone.in    2011-09-14 15:04:30.459058616 -0500
+++ src/lxc/lxc-clone.in    2011-09-14 15:05:17.179057825 -0500
@@ -186,7 +188,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





More information about the lxc-users mailing list