summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrescue/partimage_whole_disk5
1 files changed, 3 insertions, 2 deletions
diff --git a/rescue/partimage_whole_disk b/rescue/partimage_whole_disk
index 21349ca8a..8e68d8492 100755
--- a/rescue/partimage_whole_disk
+++ b/rescue/partimage_whole_disk
@@ -194,14 +194,15 @@ sub rest_all {
foreach (@{$h{created}}) {
fs::format::part_raw($_, undef);
}
+
+ run_program::run('install_bootloader');
if (my @missing = grep { $_->{missing} } @{$h{part_list}}) {
my $missing = join('|', map { quotemeta($_->{device}) } @missing);
log::l("drop missing devices from fstab: $missing");
+ $::prefix = '/mnt';
substInFile { $_ = '' if m!^/dev/($missing)\s! } "$::prefix/etc/fstab";
}
-
- run_program::run('install_bootloader');
}
sub lst_fields() { qw(device size fs_type saved) }