From 8218dedf2f13b83897bf4c24f586260965f01465 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Tue, 2 Dec 2003 20:14:52 +0000 Subject: need to touch /etc/mtab at very beginning to prevent from creating a link to the RO volume thus failing substInFile from fs::umount --- move/move.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'move') diff --git a/move/move.pm b/move/move.pm index 382bc180a..fb1d1fc4f 100644 --- a/move/move.pm +++ b/move/move.pm @@ -106,6 +106,8 @@ sub init { mkdir "/etc/$_" foreach qw(X11); touch '/etc/modules.conf'; + touch '/etc/mtab'; #- prevents from creating a link to the RO volume thus failing substInFile from fs::umount + #- these files need be writable but we need a sensible first contents system("cp /image/etc/$_ /etc") foreach qw(passwd passwd- group sudoers fstab); @@ -146,7 +148,7 @@ sub init { #- or O_RDWR -> in that case, they should be handled in the #- OVERWRITE section of data/etcfiles) foreach (chomp_(cat_('/image/move/all-etcfiles'))) { - -f or symlinkf_short("/image/$_", $_); + -f or symlinkf_short("/image$_", $_); } #- free up stage1 memory -- cgit v1.2.1