summaryrefslogtreecommitdiffstats
path: root/lib/MDV
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-10-30 18:44:06 +0000
committerOlivier Blin <oblin@mandriva.com>2008-10-30 18:44:06 +0000
commitce6bc6d571a5fa7418301ecebf4fc0003337117e (patch)
tree0f72140f9054cdd1c9b9b965e8e50aac3ba5fbb0 /lib/MDV
parent35e05a25b4c6bb5b737f0672820ed99e8c380615 (diff)
downloaddraklive-ce6bc6d571a5fa7418301ecebf4fc0003337117e.tar
draklive-ce6bc6d571a5fa7418301ecebf4fc0003337117e.tar.gz
draklive-ce6bc6d571a5fa7418301ecebf4fc0003337117e.tar.bz2
draklive-ce6bc6d571a5fa7418301ecebf4fc0003337117e.tar.xz
draklive-ce6bc6d571a5fa7418301ecebf4fc0003337117e.zip
mount /dev as tmpfs after pivot_root, so that finit's /dev/initctl does not get forgotten when start_udev remounts /dev
Diffstat (limited to 'lib/MDV')
-rw-r--r--lib/MDV/Draklive/Initrd.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/MDV/Draklive/Initrd.pm b/lib/MDV/Draklive/Initrd.pm
index 0e911a0..bceaa09 100644
--- a/lib/MDV/Draklive/Initrd.pm
+++ b/lib/MDV/Draklive/Initrd.pm
@@ -220,6 +220,8 @@ sub create_initrd_scriptlet {
q(sh -c 'cd /initrd/live; for i in `ls -1`; do [ -d $i ] || continue; mkdir -p /live/$i; mount -n --move $i /live/$i; rmdir $i; done'),
q(sh -c 'mv /initrd/live/* /live/'),
q(rmdir /initrd/live),
+ "nash-mount -o mode=0755 -t tmpfs /dev /dev",
+ q(sh -c 'mv /initrd/dev/* /dev/'),
if_($live->{system}{initrd_post}, deref_array($live->{system}{initrd_post})),
""));
}