summaryrefslogtreecommitdiffstats
path: root/draklive
diff options
context:
space:
mode:
Diffstat (limited to 'draklive')
-rwxr-xr-xdraklive2
1 files changed, 1 insertions, 1 deletions
diff --git a/draklive b/draklive
index f57a205..54795f9 100755
--- a/draklive
+++ b/draklive
@@ -585,7 +585,7 @@ sub create_initrd_scriptlet {
"pivot_root $target $target/initrd",
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 mkdir -p /live/$i; mount -n --move $i /live/$i; rmdir $i; done; rmdir /initrd/live'),
+ q(sh -c 'cd /initrd/live; for i in `ls -1`; do [ -d /live/$i ] || continue; mkdir -p /live/$i; mount -n --move $i /live/$i; rmdir $i; done; rmdir /initrd/live'),
if_($live->{system}{initrd_post}, deref_array($live->{system}{initrd_post})),
""));
}