summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/MDV/Draklive/Initrd.pm2
-rw-r--r--lib/MDV/Draklive/Loopback.pm1
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/MDV/Draklive/Initrd.pm b/lib/MDV/Draklive/Initrd.pm
index bceaa09..8b49f32 100644
--- a/lib/MDV/Draklive/Initrd.pm
+++ b/lib/MDV/Draklive/Initrd.pm
@@ -70,7 +70,7 @@ sub create_media_specific_initrd {
map { $live->{prefix}{live}{mnt} . $_ }
$live->{prefix}{media}{mnt},
$live->{mount}{root},
- map { $_->{mountpoint} } @{$live->{mount}{dirs} || []};
+ map { $_->{mountpoint} } grep { !$loop_types{$_->{type}}{skip_mkdir} } @{$live->{mount}{dirs} || []};
#- use nash with label support
inst_initrd_bin($root, $initrd_tree, '/sbin/nash');
diff --git a/lib/MDV/Draklive/Loopback.pm b/lib/MDV/Draklive/Loopback.pm
index 768b708..c9dbd9c 100644
--- a/lib/MDV/Draklive/Loopback.pm
+++ b/lib/MDV/Draklive/Loopback.pm
@@ -86,6 +86,7 @@ our %loop_types;
},
},
plain => {
+ skip_mkdir => 1,
mount => sub {
my ($live, $dir) = @_;
qq(sh -c "mkdir -p $live->{prefix}{live}{mnt}$dir->{mountpoint}");