From 7cca0e89eb3890b45a8d8be97622fb567bdab3f5 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Fri, 21 Jun 2013 11:29:50 +0200 Subject: [PATCH] artificially add /bin and /sbin to PATH so that any chroot $rootfs blabla can fly even with an f18 node and a f14 slice --- initscripts/lxc-sliceimage | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.43.0