summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/NEWS3
-rw-r--r--perl-install/bootloader.pm4
2 files changed, 5 insertions, 2 deletions
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)");