From f0752a4ab5a4e6703e27b533cc267fe221fe35bb Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sun, 2 Apr 2017 20:54:16 +0100 Subject: 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). --- draklive-install | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- cgit v1.2.1