summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2016-12-02 21:02:51 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2016-12-02 21:03:39 +0000
commitd043433cefb6a98b2e039972f90398e9edd5d074 (patch)
tree6d7bb739517030100d84f719e09b3c94a61f3de4
parent6280e6dcd97071f06b9e0a7501e8369c04dd02aa (diff)
downloaddrakx-d043433cefb6a98b2e039972f90398e9edd5d074.tar
drakx-d043433cefb6a98b2e039972f90398e9edd5d074.tar.gz
drakx-d043433cefb6a98b2e039972f90398e9edd5d074.tar.bz2
drakx-d043433cefb6a98b2e039972f90398e9edd5d074.tar.xz
drakx-d043433cefb6a98b2e039972f90398e9edd5d074.zip
Skip check for boot partitions when building Live images (mga#19516).
-rw-r--r--perl-install/fs/any.pm4
-rw-r--r--perl-install/install/steps.pm2
2 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/fs/any.pm b/perl-install/fs/any.pm
index 9dbda0eae..b47ac9f31 100644
--- a/perl-install/fs/any.pm
+++ b/perl-install/fs/any.pm
@@ -67,9 +67,11 @@ sub set_cdrom_symlink {
}
sub check_hds_boot_and_root {
- my ($all_hds, $fstab) = @_;
+ my ($all_hds, $fstab, $o_match_all_hardware) = @_;
fs::get::root_($fstab) or die "Oops, no root partition";
+ return if $o_match_all_hardware;
+
if (is_uefi()) {
if (!fs::get::has_mntpoint("/boot/EFI", $all_hds)) {
die N("You must have a ESP FAT32 partition mounted in /boot/EFI");
diff --git a/perl-install/install/steps.pm b/perl-install/install/steps.pm
index aa3d6b4ec..f25ca4551 100644
--- a/perl-install/install/steps.pm
+++ b/perl-install/install/steps.pm
@@ -201,7 +201,7 @@ sub doPartitionDisksAfter {
$part->{isMounted} = 1;
}
- fs::any::check_hds_boot_and_root($o->{all_hds}, $o->{fstab});
+ fs::any::check_hds_boot_and_root($o->{all_hds}, $o->{fstab}, $o->{match_all_hardware});
if ($o->{partitioning}{use_existing_root}) {
#- ensure those partitions are mounted so that they are not proposed in choosePartitionsToFormat