diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-06-24 08:30:35 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-06-24 08:30:35 +0000 |
commit | 4a06e392e0fb8c47b4ec472762dfbbae9b89ae7b (patch) | |
tree | 955c62fbc2282017b572370dfa3f1cee843616c4 /rescue/partimage_whole_disk | |
parent | 0ecbb561992d9b1fa4b11f0c264cfa615d756bff (diff) | |
download | drakx-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/partimage_whole_disk')
-rwxr-xr-x | rescue/partimage_whole_disk | 5 |
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) } |