summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-06-06 10:44:48 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-06-06 10:44:48 +0200
commit9e602c73415f40b86e8ee7561940b8ee7cb5c1e6 (patch)
treeb9e8c75c99a7de9a6e9e0c369893102e0fb9bdc9
parent6a805889e8d177cee40a4b435195eb56233aa87a (diff)
downloaddrakx-9e602c73415f40b86e8ee7561940b8ee7cb5c1e6.tar
drakx-9e602c73415f40b86e8ee7561940b8ee7cb5c1e6.tar.gz
drakx-9e602c73415f40b86e8ee7561940b8ee7cb5c1e6.tar.bz2
drakx-9e602c73415f40b86e8ee7561940b8ee7cb5c1e6.tar.xz
drakx-9e602c73415f40b86e8ee7561940b8ee7cb5c1e6.zip
fix reading back last grub2 entry
-rw-r--r--perl-install/NEWS1
-rw-r--r--perl-install/bootloader.pm2
-rw-r--r--perl-install/install/NEWS1
3 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 42f7f8742..b2b73cc52 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,4 +1,5 @@
- drakboot:
+ o fix reading back last grub2 entry
o only overwrite GRUB_CMDLINE_LINUX_DEFAULT on first install (mga#18112)
o set GRUB_DEFAULT + GRUB_SAVEDEFAULT (mga#9627, mga#16059)
o stop offering grub legacy & lilo on new installs (mga#18583)
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 483f67d1c..b6f9fcff1 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -318,6 +318,8 @@ sub read_grub2() {
$entry->{initrd} = $1;
}
}
+ # last entry:
+ push @{$bootloader{entries}}, $entry if $entry;
# get default entry:
foreach (run_program::rooted_get_stdout($::prefix, qw(grub2-editenv list))) {
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index 575432138..965a782aa 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -1,4 +1,5 @@
- bootloader:
+ o fix reading back last grub2 entry
o only overwrite GRUB_CMDLINE_LINUX_DEFAULT on first install (mga#18112)
o set GRUB_DEFAULT + GRUB_SAVEDEFAULT (mga#9627, mga#16059)
o stop offering grub legacy & lilo on new installs (mga#18583)