From 21faaaeedcf6554ae72e47ce58df2a680197dc1c Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 26 Nov 2007 11:56:34 +0000 Subject: - bootloader: o when reading existing menu.lst, keep verbatim entries for which the device has no mount-point --- perl-install/NEWS | 3 +++ perl-install/bootloader.pm | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'perl-install') diff --git a/perl-install/NEWS b/perl-install/NEWS index 48ab8933b..1f9b3ce2f 100644 --- a/perl-install/NEWS +++ b/perl-install/NEWS @@ -1,3 +1,6 @@ +- bootloader: + o when reading existing menu.lst, keep verbatim entries for which the device + has no mount-point - diskdrake: o fix garbaged error messages when umounting fs o disallow "Use for loopback" when the partition used for loopback is diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index 13959c369..ba69f00e9 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -1495,8 +1495,8 @@ sub grub2dev { sub grub2file { my ($grub_file, $grub2dev, $fstab) = @_; if (my ($device, $rel_file) = grub2dev_and_file($grub_file, $grub2dev)) { - if (my $part = fs::get::device2part($device, $fstab)) { - my $mntpoint = $part->{mntpoint} || ''; + my $part = fs::get::device2part($device, $fstab); + if (my $mntpoint = $part && $part->{mntpoint}) { ($mntpoint eq '/' ? '' : $mntpoint) . '/' . $rel_file; } else { log::l("ERROR: unknown device $device (computed from $grub_file)"); -- cgit v1.2.1