From: Thierry Parmentelat Date: Fri, 21 Jun 2013 09:29:50 +0000 (+0200) Subject: artificially add /bin and /sbin to PATH so that any chroot $rootfs blabla can fly... X-Git-Tag: sliceimage-5.1-5~2 X-Git-Url: http://git.onelab.eu/?p=sliceimage.git;a=commitdiff_plain;h=7cca0e89eb3890b45a8d8be97622fb567bdab3f5 artificially add /bin and /sbin to PATH so that any chroot $rootfs blabla can fly even with an f18 node and a f14 slice --- diff --git a/initscripts/lxc-sliceimage b/initscripts/lxc-sliceimage index 1c26832..0255e43 100755 --- a/initscripts/lxc-sliceimage +++ b/initscripts/lxc-sliceimage @@ -10,6 +10,10 @@ # not needed -- Source function library #. /etc/init.d/functions +# a f>=18 root context won't have /bin nor /sbin in its path, which is where +# chkconfig is located on f<=14 images +export PATH=$PATH:/bin:/sbin + # This is where sliceimage(s) store their reference images sliceimage_dir=/vservers/.vref sliceimage_stubs=/vservers/.vstub