SVN: rc-scripts/trunk/rc.d/init.d/sys-chroots

glen glen at pld-linux.org
Mon Sep 18 21:02:59 CEST 2006


Author: glen
Date: Mon Sep 18 21:02:59 2006
New Revision: 7792

Modified:
   rc-scripts/trunk/rc.d/init.d/sys-chroots
Log:
Don't touch chkconfig symlinks on chroot, instead play with network subsys lockfile. This allows you define sys-chroots from livecd without corrupting that chroot.

Modified: rc-scripts/trunk/rc.d/init.d/sys-chroots
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/sys-chroots	(original)
+++ rc-scripts/trunk/rc.d/init.d/sys-chroots	Mon Sep 18 21:02:59 2006
@@ -100,8 +100,6 @@
 			fi
 			chroot $dir mount -a
 			# network
-			chroot $dir /sbin/chkconfig network off
-			rm -f $dir/etc/rc.d/rc*.d/K*network
 			[ -f /var/lock/subsys/network ] && touch $dir/var/lock/subsys/network
 			# other
 			chroot $dir /sbin/chkconfig single off
@@ -129,8 +127,8 @@
 		for dir in $SYSTEM_CHROOTS; do
 			[ ! -x "$dir/etc/rc.d/rc" ] && continue
 			msg_stopping "System chroots services for $dir"; started
-			chroot $dir /etc/rc.d/rc $runlevel chroot
 			rm -f $dir/var/lock/subsys/network
+			chroot $dir /etc/rc.d/rc $runlevel chroot
 			chroot $dir /bin/sh -c "grep -q selinuxfs /proc/filesystems && umount /selinux"
 			chroot $dir /bin/sh -c "grep -q sysfs /proc/filesystems && umount /sys"
 			chroot $dir umount -a


More information about the pld-cvs-commit mailing list