summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2017-04-02 20:54:16 +0100
committerRĂ©mi Verschelde <rverschelde@gmail.com>2017-04-04 20:04:32 +0200
commitf0752a4ab5a4e6703e27b533cc267fe221fe35bb (patch)
treea6fb5949e149ef62d5830340cff4e95a285449de
parent765fd288bff5860958e5af58a90cc718dcf32a19 (diff)
downloaddraklive-install-f0752a4ab5a4e6703e27b533cc267fe221fe35bb.tar
draklive-install-f0752a4ab5a4e6703e27b533cc267fe221fe35bb.tar.gz
draklive-install-f0752a4ab5a4e6703e27b533cc267fe221fe35bb.tar.bz2
draklive-install-f0752a4ab5a4e6703e27b533cc267fe221fe35bb.tar.xz
draklive-install-f0752a4ab5a4e6703e27b533cc267fe221fe35bb.zip
Try to ensure kernel is informed of partition table changes.
There is an unidentified condition which stops udevd from calling the BLKRRPART ioctl when the "use entire disk" solution is selected. Adding a udevadm settle' call appears to fix it (although it may just be the extra delay that does the job).
-rwxr-xr-xdraklive-install7
1 files changed, 7 insertions, 0 deletions
diff --git a/draklive-install b/draklive-install
index eced2d6..0dd21d6 100755
--- a/draklive-install
+++ b/draklive-install
@@ -179,6 +179,13 @@ sub ask_partitions {
mkdir_p($::prefix) or die "unable to create $::prefix";
+ # There is an unidentified condition which stops udevd from calling the
+ # BLKRRPART ioctl when the "use entire disk" solution is selected. Adding
+ # this udevadm settle' call appears to fix it (although it may just be the
+ # extra delay that does the job). Look at removing this once we switch to
+ # using libparted for all partition table types.
+ system('udevadm', 'settle');
+
fs::any::write_hds($all_hds, $fstab, undef, sub { on_reboot_needed($in) }, {});
fs::any::check_hds_boot_and_root($all_hds, $fstab);
fs::partitioning::choose_partitions_to_format($in, $fstab);