[Pkg-sysvinit-commits] r992 - in sysvinit/trunk/debian: . initscripts

Petter Reinholdtsen pere at costa.debian.org
Sat Sep 30 14:26:37 UTC 2006


Author: pere
Date: 2006-09-30 14:26:37 +0000 (Sat, 30 Sep 2006)
New Revision: 992

Modified:
   sysvinit/trunk/debian/changelog
   sysvinit/trunk/debian/initscripts/postinst
Log:
  * Use 'mkdir -p' when creating /.root, to avoid failing if it already exist.

Modified: sysvinit/trunk/debian/changelog
===================================================================
--- sysvinit/trunk/debian/changelog	2006-09-30 14:24:06 UTC (rev 991)
+++ sysvinit/trunk/debian/changelog	2006-09-30 14:26:37 UTC (rev 992)
@@ -5,6 +5,7 @@
     in vserver environments.
   * Only try to create /var/run and /var/lock on the root file system
     in non-chroot environments?
+  * Use 'mkdir -p' when creating /.root, to avoid failing if it already exist.
 
  -- Petter Reinholdtsen <pere at debian.org>  Sat, 30 Sep 2006 14:37:36 +0200
 

Modified: sysvinit/trunk/debian/initscripts/postinst
===================================================================
--- sysvinit/trunk/debian/initscripts/postinst	2006-09-30 14:24:06 UTC (rev 991)
+++ sysvinit/trunk/debian/initscripts/postinst	2006-09-30 14:26:37 UTC (rev 992)
@@ -171,7 +171,7 @@
 then
 	# We need to quickly bind / to another location so we can make them
 	# just in case /var is a mountpoint or a symlink to one.
-	mkdir /.root
+	mkdir -p /.root
 	if mount -n --bind / /.root ; then
 		mkdir -p /.root/var/run /.root/var/lock
 		umount /.root




More information about the Pkg-sysvinit-commits mailing list