summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdraklive7
1 files changed, 3 insertions, 4 deletions
diff --git a/draklive b/draklive
index c01ee46..fb2b4d0 100755
--- a/draklive
+++ b/draklive
@@ -1183,13 +1183,12 @@ sub record_usb_master {
cp_af(glob_(get_builddir($live) . $live->{prefix}{build}{files} . '/*'), $live->{mnt});
} unless $opts->{boot_only};
+ my @dot_files = map { basename($_) } glob_($live->{mnt} . "/.*");
+
run_('umount', $live->{mnt});
maybe_umount_device($device);
- if ($live->{system}{hide_media_dirs}) {
- mtools_run_('mattrib', '+a', '+r', '+s', '+h', '-/', '-i', $device, '::' . $live->{prefix}{media}{$_})
- foreach qw(boot loopbacks);
- }
+ mtools_run_('mattrib', '+a', '+r', '+s', '+h', '-/', '-i', $device, '::' . $_) foreach @dot_files;
}
#- $opts: