Hi! I doubt that there is a need for a very general solution and rather consider this a corner case. Thus we should IMHO create the directories /var/run and /var/lock in mount2dir (see attached patch), but not hack anything into setup_harddisks.
Best, Michael
Index: mount2dir
===================================================================
--- mount2dir (revision 5004)
+++ mount2dir (working copy)
@@ -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 $target/var/lock $target/var/run
+ fi
esac
done
pgpvZXLr5diFT.pgp
Description: PGP signature

