summaryrefslogtreecommitdiffstats
path: root/move/move.pm
diff options
context:
space:
mode:
Diffstat (limited to 'move/move.pm')
-rw-r--r--move/move.pm10
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);