summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-12-02 20:14:52 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-12-02 20:14:52 +0000
commit8218dedf2f13b83897bf4c24f586260965f01465 (patch)
tree82ba282141fa1439a2cc047a104cbc8ca1588047
parent881f68d92ffb9910d4179229ac04dca608284e02 (diff)
downloaddrakx-8218dedf2f13b83897bf4c24f586260965f01465.tar
drakx-8218dedf2f13b83897bf4c24f586260965f01465.tar.gz
drakx-8218dedf2f13b83897bf4c24f586260965f01465.tar.bz2
drakx-8218dedf2f13b83897bf4c24f586260965f01465.tar.xz
drakx-8218dedf2f13b83897bf4c24f586260965f01465.zip
need to touch /etc/mtab at very beginning to prevent from creating a link to the RO volume thus failing substInFile from fs::umount
-rw-r--r--move/move.pm4
1 files changed, 3 insertions, 1 deletions
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