summaryrefslogtreecommitdiffstats
path: root/lib/MDV
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-10-30 19:00:34 +0000
committerOlivier Blin <oblin@mandriva.com>2008-10-30 19:00:34 +0000
commit0d9a251cbfa8c504b3d33b0da5c834a972bee65d (patch)
tree8fea8a7ce86bfffce7da575ce5488a4cb2673b3a /lib/MDV
parent6c255528ca7ddec4b7902a39f43f90f4a720f0a8 (diff)
downloaddraklive-0d9a251cbfa8c504b3d33b0da5c834a972bee65d.tar
draklive-0d9a251cbfa8c504b3d33b0da5c834a972bee65d.tar.gz
draklive-0d9a251cbfa8c504b3d33b0da5c834a972bee65d.tar.bz2
draklive-0d9a251cbfa8c504b3d33b0da5c834a972bee65d.tar.xz
draklive-0d9a251cbfa8c504b3d33b0da5c834a972bee65d.zip
only move modules list if needed
Diffstat (limited to 'lib/MDV')
-rw-r--r--lib/MDV/Draklive/Initrd.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MDV/Draklive/Initrd.pm b/lib/MDV/Draklive/Initrd.pm
index 8b49f32..ccb54a8 100644
--- a/lib/MDV/Draklive/Initrd.pm
+++ b/lib/MDV/Draklive/Initrd.pm
@@ -218,7 +218,7 @@ sub create_initrd_scriptlet {
q(sh -c 'rmdir /initrd/live/union'),
q(sh -c 'if [ -d /initrd/live/modules ]; then cd /initrd/live/modules; for i in `ls -1`; do mkdir -p /live/modules/$i; mount -n --move $i /live/modules/$i; rmdir $i; done; rmdir /initrd/live/modules; fi'),
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/'),
+ (map { qq(sh -c 'mv /initrd/live/$_->{list} /live/') } grep { $_->{list} } @{$live->{mount}{dirs} || []}),
q(rmdir /initrd/live),
"nash-mount -o mode=0755 -t tmpfs /dev /dev",
q(sh -c 'mv /initrd/dev/* /dev/'),