summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-02-26 06:35:55 +0000
committerThierry Vignaud <tv@mageia.org>2013-02-26 06:35:55 +0000
commita03c584d50e83f221b001dbe5f6518174b40a79d (patch)
treee886ede37a094337a33a9efe201ecde174731964 /perl-install
parent96f44d8729f1d67073d92a0de1c3737cea9c1eca (diff)
downloaddrakx-backup-do-not-use-a03c584d50e83f221b001dbe5f6518174b40a79d.tar
drakx-backup-do-not-use-a03c584d50e83f221b001dbe5f6518174b40a79d.tar.gz
drakx-backup-do-not-use-a03c584d50e83f221b001dbe5f6518174b40a79d.tar.bz2
drakx-backup-do-not-use-a03c584d50e83f221b001dbe5f6518174b40a79d.tar.xz
drakx-backup-do-not-use-a03c584d50e83f221b001dbe5f6518174b40a79d.zip
(read_grub2,install_grub2) read & write /boot/grub2/drakboot.conf
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/NEWS1
-rw-r--r--perl-install/bootloader.pm3
-rw-r--r--perl-install/install/NEWS1
3 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index f75c75a69..d876d8d50 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,4 +1,5 @@
- drakboot:
+ o read & write /boot/grub2/drakboot.conf
o prevent installing grub2 somewhere else than MBR
- always bypass blkid cache (the cache only includes a subset of the data we need)
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index f15db5f51..9e8a7d66a 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -234,7 +234,7 @@ sub read {
}
sub read_grub2 {
- {};
+ my %bootloader = getVarsFromSh("$::prefix/boot/grub2/drakboot.conf");
}
sub read_grub {
@@ -1975,6 +1975,7 @@ sub install_grub2 {
run_program::rooted($::prefix, 'grub2-mkconfig', '2>', \$error, '-o', $grub2_cfg) or die "grub2-mkconfig failed: $error";
}
run_program::rooted($::prefix, 'grub2-install', '2>', \$error, $bootloader->{boot}) or die "grub2-install failed: $error";
+ setVarsInSh("$::prefix/boot/grub2/drakboot.conf", { boot => $bootloader->{boot} });
}
sub install_grub {
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index cbfde9e29..e084750c1 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -1,5 +1,6 @@
- summary:
o prevent installing grub2 somewhere else than MBR
+ o read & write /boot/grub2/drakboot.conf
o suggests MBR by default for grub2 too (Manuel Hiebel, #8851)
- always bypass blkid cache (the cache only includes a subset of the data we need)