summaryrefslogtreecommitdiffstats
path: root/rescue
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-06-24 08:30:35 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-06-24 08:30:35 +0000
commit4a06e392e0fb8c47b4ec472762dfbbae9b89ae7b (patch)
tree955c62fbc2282017b572370dfa3f1cee843616c4 /rescue
parent0ecbb561992d9b1fa4b11f0c264cfa615d756bff (diff)
downloaddrakx-4a06e392e0fb8c47b4ec472762dfbbae9b89ae7b.tar
drakx-4a06e392e0fb8c47b4ec472762dfbbae9b89ae7b.tar.gz
drakx-4a06e392e0fb8c47b4ec472762dfbbae9b89ae7b.tar.bz2
drakx-4a06e392e0fb8c47b4ec472762dfbbae9b89ae7b.tar.xz
drakx-4a06e392e0fb8c47b4ec472762dfbbae9b89ae7b.zip
fixing fstab must be done after mounting /mnt
Diffstat (limited to 'rescue')
-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) }