artificially add /bin and /sbin to PATH so that any chroot $rootfs blabla can fly...
Thierry Parmentelat [Fri, 21 Jun 2013 09:29:50 +0000 (11:29 +0200)]
initscripts/lxc-sliceimage

index 1c26832..0255e43 100755 (executable)
 # 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