From fb5ed803ca2ce58117b8bf97a9717cab766b0d71 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Mon, 1 Sep 2014 14:12:03 +0000 Subject: Only allow GRUB2 when booting on btrfs --- perl-install/NEWS | 2 ++ perl-install/bootloader.pm | 4 ++-- perl-install/install/NEWS | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'perl-install') diff --git a/perl-install/NEWS b/perl-install/NEWS index 9d9037114..31c900156 100644 --- a/perl-install/NEWS +++ b/perl-install/NEWS @@ -1,3 +1,5 @@ +- only allow GRUB2 when booting on btrfs + Version 16.41 - 31 August 2014 - add packages to wanted_hardware_packages list to prevent them being removed: diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index 885c30dfa..7ca1fdbf5 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -1270,8 +1270,8 @@ sub method_choices { my $have_dmraid = find { fs::type::is_dmraid($_) } @{$all_hds->{hds}}; grep { - !(/lilo/ && (isLoopback($root_part) || $have_dmraid || - $boot_part->{fs_type} eq 'btrfs')) + !(/lilo/ && (isLoopback($root_part) || $have_dmraid)) + && (/grub2/ || $boot_part->{fs_type} ne 'btrfs') && !(/grub-graphic/ && cat_("/proc/cmdline") =~ /console=ttyS/); } method_choices_raw($b_prefix_mounted); } diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index 86623cd8a..e9a058c67 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,3 +1,5 @@ +- only allow GRUB2 when booting on btrfs + Version 16.41 - 31 August 2014 - adapt to latest systemd -- cgit v1.2.1