[Fai-commit] r5362 - in trunk: debian lib

Thomas Lange lange at alioth.debian.org
Sun Apr 19 17:17:48 UTC 2009


Author: lange
Date: 2009-04-19 17:17:48 +0000 (Sun, 19 Apr 2009)
New Revision: 5362

Modified:
   trunk/debian/changelog
   trunk/lib/mount2dir
Log:
mount2dir: add commands to create /var/lock and /var/run on the
filesystem mounted at / (closes: #464541)

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2009-04-19 17:13:03 UTC (rev 5361)
+++ trunk/debian/changelog	2009-04-19 17:17:48 UTC (rev 5362)
@@ -47,6 +47,8 @@
     Dir::Etc::sourceslist only (thanks Sebastian Harl) (closes: #504813)
   * get-config-dir-git: do not clone into an existing directory (thanks
     Sebastian Harl) (closes: #506463)
+  * mount2dir: add commands to create /var/lock and /var/run on the
+    filesystem mounted at / (closes: #464541)
 
   [ Michael Tautschnig ]
   * setup-storage: Bumped version number to 1.0.4

Modified: trunk/lib/mount2dir
===================================================================
--- trunk/lib/mount2dir	2009-04-19 17:13:03 UTC (rev 5361)
+++ trunk/lib/mount2dir	2009-04-19 17:17:48 UTC (rev 5362)
@@ -6,7 +6,7 @@
 # mount2dir -- mount partitions to a directory using a fstab file
 #
 # This script is part of FAI (Fully Automatic Installation)
-# (c) 2001-2007 by Thomas Lange, lange at informatik.uni-koeln.de
+# (c) 2001-2009 by Thomas Lange, lange at informatik.uni-koeln.de
 # Universitaet zu Koeln
 #
 #*********************************************************************
@@ -87,6 +87,9 @@
 	    # should we fsck the partition first?
 	    [ "$fscheck" = 1 ] && fsck -nt $fstype $device
 	    mount -t $fstype -o noatime $mopt $device $target$mountpoint
+	    if [ "$mountpoint" = "/" ] ; then
+	      mkdir -p $target/var/lock $target/var/run 2>/dev/null
+	    fi
     esac
 done
 




More information about the Fai-commit mailing list