From 900590657e31ed9da66718da7d7fdbe59408c226 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sat, 28 Apr 2012 19:49:53 +0000 Subject: (install,check_mntpoint) forbid having /boot as btrfs (mga#5627) --- perl-install/bootloader.pm | 2 +- perl-install/fsedit.pm | 2 ++ perl-install/install/NEWS | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index c7546a125..757b3022e 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -1968,7 +1968,7 @@ sub install { if (my $part = fs::get::device2part($bootloader->{boot}, [ fs::get::fstab($all_hds) ])) { die N("You cannot install the bootloader on a %s partition\n", $part->{fs_type}) - if $part->{fs_type} eq 'xfs'; + if member($part->{fs_type}, qw(btrfs xfs)); } $bootloader->{keytable} = keytable($bootloader->{keytable}); action($bootloader, 'install', $all_hds); diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm index 55efecddd..48da034c7 100644 --- a/perl-install/fsedit.pm +++ b/perl-install/fsedit.pm @@ -478,6 +478,8 @@ You should create a separate /boot partition first") if $mntpoint eq "/" && isLV if member($mntpoint, qw(/bin /dev /etc /lib /sbin /mnt /media)); die N("You need a true filesystem (ext2/3/4, reiserfs, xfs, or jfs) for this mount point\n") if !isTrueLocalFS($part) && $mntpoint eq '/'; + die N("You need a true filesystem (ext2/3/4, reiserfs, xfs, or jfs) for this mount point\n") + if $part->{fs_type} eq 'btrfs' && $mntpoint eq '/boot'; die N("You need a true filesystem (ext2/3/4, reiserfs, xfs, or jfs) for this mount point\n") if !isTrueFS($part) && member($mntpoint, '/home', fs::type::directories_needed_to_boot()); die N("You cannot use an encrypted filesystem for mount point %s", $mntpoint) diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index c93319439..29c730cbf 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,4 +1,6 @@ - add btrfsck +- partitioning: + o forbid having /boot as btrfs (mga#5627) Version 14.15 - 27 april 2012 -- cgit v1.2.1