]> git.ipfire.org Git - thirdparty/lxc.git/commit
Fix paths in the lxc-busybox template
authorDaniel Lezcano <daniel.lezcano@free.fr>
Thu, 27 Jan 2011 23:24:54 +0000 (00:24 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Thu, 27 Jan 2011 23:24:54 +0000 (00:24 +0100)
commitb09ecaf30367648a246d2e01c3a288a7653cc613
treef66c9d651670c25afac899100f9f42c62197f3ce
parent3244e75040a98d2854144ebc169a5a61ddbe0a26
Fix paths in the lxc-busybox template

Author of the patch : Jonathan Liu <???> posted as a bug fix on the lxc
sourceforge website.

OS: Arch Linux 32-bit

/etc/init.d/rcS do not use full path to syslogd, mount and udhcpc executables.
As busybox requires /proc mounted if CONFIG_BUSYBOX_EXEC_PATH="/proc/self/exe"
to run these commands without full path, the full path should be used in the
startup script as /proc is mounted later in the script.

It also fails to start the machine if /lib64 does not exist on the host system
as there is a mount entry for /lib64 in the config.

The attached patch changes commands in /etc/init.d/rcS to use full path and
adds a check for /lib64 on host before adding lib64 mount entries to config.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
templates/lxc-busybox.in