diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-04-24 12:56:53 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-04-24 12:56:53 +0000 |
commit | fdbd839c0f442d67fcc1bee150c136d77f72c9a8 (patch) | |
tree | bb64453df93de846e1a45d241b78cd44e64fbd03 | |
parent | 9e69d9010302e4961b062d3a74b7fd952d10fe24 (diff) | |
download | drakx-fdbd839c0f442d67fcc1bee150c136d77f72c9a8.tar drakx-fdbd839c0f442d67fcc1bee150c136d77f72c9a8.tar.gz drakx-fdbd839c0f442d67fcc1bee150c136d77f72c9a8.tar.bz2 drakx-fdbd839c0f442d67fcc1bee150c136d77f72c9a8.tar.xz drakx-fdbd839c0f442d67fcc1bee150c136d77f72c9a8.zip |
- bootloader-config:
o do not detect device.map inconsistency when "/boot" (or "/") is on Linux
software raid (/dev/mdX), cf #28309 and #35714
10.29.1 release is skipped
-rw-r--r-- | perl-install/NEWS | 4 | ||||
-rw-r--r-- | perl-install/bootloader.pm | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS index 0fccbcbca..1b7f4a8a4 100644 --- a/perl-install/NEWS +++ b/perl-install/NEWS @@ -1,8 +1,8 @@ -Version 10.29.1 - 24 April 2008 - - bootloader-config: o fix detecting device.map inconsistency when "/boot" and "/" are not on same "drive" (esp. when "/" is LVM and "/boot" is not, #39229) + o do not detect device.map inconsistency when "/boot" (or "/") is on Linux + software raid (/dev/mdX), cf #28309 and #35714 - drakupdate_fstab: o only add formatted partitions in fstab (or else it will make subsequent boot fail) diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index bfe2379d5..c85a9271b 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -225,14 +225,14 @@ sub _may_fix_grub2dev { my ($fstab, $grub2dev, $boot_part) = @_; my $real_boot_part = fs::get::root_($fstab, 'boot') or log::l("argh... the fstab given is useless, it doesn't contain '/'"), return; + + my $real_boot_dev = $real_boot_part->{rootDevice} or return; # if /boot is on Linux RAID 1, hope things are all right... if (my $prev_boot_part = fs::get::device2part(grub2dev($boot_part, $grub2dev), $fstab)) { # the boot_device as far as grub config files say $real_boot_part == $prev_boot_part and return; } log::l("WARNING: we have detected that device.map is inconsistent with the system"); - - my $real_boot_dev = $real_boot_part->{rootDevice}; my ($hd_grub, undef, undef) = parse_grub_file($boot_part); if (my $prev_hd_grub = find { $grub2dev->{$_} eq $real_boot_dev } keys %$grub2dev) { |