> Calling task_mountdisks
> Enable swap device /dev/md1
> Mounting /dev/md0 to /target/ type: ext3 opt: -o rw,errors=remount-ro
> mkdir: cannot create directory `/target/var/lock': No such file or directory
> mkdir: cannot create directory `/target/var/run': No such file or directory
> 
> a fresh fs will not contain /var, either create that too or
> use mkdir -p

Indeed, even though there is some doubt whether this is a problem to be fixed in
FAI or rather in initscripts.

Anyway, attached is the bugfix of the bugfix.

Best,
Michael

2008-08-23  Michael Tautschnig  <[EMAIL PROTECTED]>

        * lib/mount2dir: Add commands to create /var/lock and /var/run on the
                filesystem mounted at / (closes: #464541)
Index: trunk/lib/mount2dir
===================================================================
--- trunk.orig/lib/mount2dir
+++ trunk/lib/mount2dir 
@@ -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
+           fi
     esac
 done
 

Attachment: pgpSQqH790RdG.pgp
Description: PGP signature

Reply via email to