diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-11-12 14:46:10 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-11-12 14:46:10 +0000 |
commit | 3e0af4db16fdd159440454a2062d9189a4f92ee7 (patch) | |
tree | b6bbeb54affd72e8b2df494cb6f134c44fcdb602 /move/move.pm | |
parent | de6ee233646a288be26ffb16af219724db8c138f (diff) | |
download | drakx-3e0af4db16fdd159440454a2062d9189a4f92ee7.tar drakx-3e0af4db16fdd159440454a2062d9189a4f92ee7.tar.gz drakx-3e0af4db16fdd159440454a2062d9189a4f92ee7.tar.bz2 drakx-3e0af4db16fdd159440454a2062d9189a4f92ee7.tar.xz drakx-3e0af4db16fdd159440454a2062d9189a4f92ee7.zip |
be sure remaining /etc files are at least available RO
Diffstat (limited to 'move/move.pm')
-rw-r--r-- | move/move.pm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/move/move.pm b/move/move.pm index 9b3cfb288..6ad098323 100644 --- a/move/move.pm +++ b/move/move.pm @@ -80,7 +80,15 @@ sub init { #- because programs most often won't try to create the missing subdir before trying #- to write a file, leading to obscure unexpected failures -d $_ or mkdir_p $_ foreach chomp_(cat_('/image/move/directories-to-create')); - + + #- remaining non existent /etc files are symlinked from the RO volume, + #- better to have them RO than non existent. + #- PB: problems arise when programs try to open then in O_WRONLY + #- 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/$_", $_); + } #- free up stage1 memory fs::umount($_) foreach qw(/stage1/proc /stage1); |