diff options
Diffstat (limited to 'draklive')
-rwxr-xr-x | draklive | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -899,7 +899,7 @@ sub record_usb_master { or die "unable to find recording device (missing label? try with --device <device>)\n"; mkdir_p($live->{mnt}); - run_('mount', if_(-f $device, '-o', 'loop'), $device, $live->{mnt}) + run_('mount', $device, $live->{mnt}) or die "unable to mount $device\n"; rm_rf($live->{mnt} . $media_boot) if -e $live->{mnt} . $media_boot; cp_af($live->get_builddir . $live->{prefix}{build}{boot}, $live->{mnt} . $media_boot); @@ -951,7 +951,7 @@ sub record_harddisk_master { or die "unable to find recording device (missing label? try with --device <device>)\n"; mkdir_p($live->{mnt}); - run_('mount', if_(-f $device, '-o', 'loop'), $device, $live->{mnt}) + run_('mount', $device, $live->{mnt}) or die "unable to mount $device\n"; do { @@ -1101,7 +1101,7 @@ sub record_oem_rescue { my $media = $live->{oem_rescue}{media}; my $media_boot = $live->get_media_prefix('boot'); mkdir_p($live->{mnt}); - run_('mount', if_(-f $device, '-o', 'loop'), $device, $live->{mnt}) + run_('mount', $device, $live->{mnt}) or die "unable to mount $device\n"; record_rescue_files($live->{mnt}, $device, [ get_rescue_files($live, $live->{oem_rescue}) ]); @@ -1142,7 +1142,7 @@ sub record_usb_replicator { my $device = get_media_device($live, $opts) or die "unable to find recording device (missing label? try with --device <device>)\n"; mkdir_p($live->{mnt}); - run_('mount', if_(-f $device, '-o', 'loop'), $device, $live->{mnt}) + run_('mount', $device, $live->{mnt}) or die "unable to mount $device\n"; rm_rf($live->{mnt} . $media_boot) if -e $live->{mnt} . $media_boot; install_usb_bootloader($live, $media, $opts); |