[lxc-devel] [PATCH 2/2] Fix paths in the lxc-busybox template

Rob Landley rlandley at parallels.com
Tue Feb 1 17:46:46 UTC 2011


On 01/27/2011 05:16 PM, Daniel Lezcano wrote:
> 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.

No, that's only if busybox is configured to prioritize its internal
commands over the ones in $PATH.  When it finds a command in $PATH and
runs it, it doesn't know or care if that's another busybox applet.  It
does a normal exec syscall just like anything else.

I.E either your $PATH is set wrong or you misconfigured your busybox by
switching on CONFIG_FEATURE_PREFER_APPLETS, which is not enabled by
defconfig.

Hmmm, although I suppose I should tweak busybox to fail gracefully if so...

Rob




More information about the lxc-devel mailing list