summaryrefslogtreecommitdiffstats
path: root/lib/MDV
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-11-12 16:55:29 +0000
committerOlivier Blin <oblin@mandriva.com>2008-11-12 16:55:29 +0000
commit97f5e2cfb2ff727d53fde508b27095150f1ba331 (patch)
tree645d33c50911ca2c85afb91efa0e495a9c295065 /lib/MDV
parent4fdf6f901b23a5422d88cc03a482bd5365defd37 (diff)
downloaddrakiso-97f5e2cfb2ff727d53fde508b27095150f1ba331.tar
drakiso-97f5e2cfb2ff727d53fde508b27095150f1ba331.tar.gz
drakiso-97f5e2cfb2ff727d53fde508b27095150f1ba331.tar.bz2
drakiso-97f5e2cfb2ff727d53fde508b27095150f1ba331.tar.xz
drakiso-97f5e2cfb2ff727d53fde508b27095150f1ba331.zip
do not copy /dev/loop in system's /dev
Diffstat (limited to 'lib/MDV')
-rw-r--r--lib/MDV/Draklive/Initrd.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/MDV/Draklive/Initrd.pm b/lib/MDV/Draklive/Initrd.pm
index 0f1f878..494c55c 100644
--- a/lib/MDV/Draklive/Initrd.pm
+++ b/lib/MDV/Draklive/Initrd.pm
@@ -220,6 +220,7 @@ sub create_initrd_scriptlet {
"sh -c 'cd $initrdroot$live->{prefix}{live}{mnt}; for i in `ls -1`; do [ -d \$i ] || continue; mkdir -p $live->{prefix}{live}{mnt}/\$i; mount -n --move \$i $live->{prefix}{live}{mnt}/\$i; rmdir \$i; done'",
"rmdir $initrdroot$live->{prefix}{live}{mnt}",
"nash-mount -o mode=0755 -t tmpfs /dev /dev",
+ "sh -c 'rm -rf /dev/loop'", #- not needed after initrd
"sh -c 'mv $initrdroot/dev/* /dev/'",
if_($live->{system}{initrd_post}, deref_array($live->{system}{initrd_post})),
""));