[Pkg-uml-commit] r193 - trunk/src/rootstrap/modules

Mattia Dongili malattia at costa.debian.org
Sat Sep 2 15:29:02 UTC 2006


Author: malattia
Date: 2006-09-02 15:29:02 +0000 (Sat, 02 Sep 2006)
New Revision: 193

Modified:
   trunk/src/rootstrap/modules/base-config
Log:
be sure to kill all processes using the $TARGET fs

Modified: trunk/src/rootstrap/modules/base-config
===================================================================
--- trunk/src/rootstrap/modules/base-config	2006-09-02 15:28:09 UTC (rev 192)
+++ trunk/src/rootstrap/modules/base-config	2006-09-02 15:29:02 UTC (rev 193)
@@ -56,8 +56,10 @@
 	chroot $TARGET mount -t proc proc /proc
 	divert $TARGET/sbin/start-stop-daemon
 	chroot $TARGET base-config
+	undivert $TARGET/sbin/start-stop-daemon
 	chroot $TARGET umount /proc
-	undivert $TARGET/sbin/start-stop-daemon
+	# kill any processes using the target fs
+	fuser -k -v -m $TARGET || true
 else
 	echo "'base-config' not found, skipping."
 fi




More information about the Pkg-uml-commit mailing list