Mageia Bugzilla – Attachment 9171 Details for
Bug 20619
Failure to inform kernel about partition table changes when "Use entire disk" is selected in installer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
draklive-install patch to make partitioning more robust
0001-Try-to-ensure-kernel-is-informed-of-partition-table-.patch (text/plain), 1.31 KB, created by
Martin Whitaker
on 2017-04-02 22:04:33 CEST
(
hide
)
Description:
draklive-install patch to make partitioning more robust
Filename:
MIME Type:
Creator:
Martin Whitaker
Created:
2017-04-02 22:04:33 CEST
Size:
1.31 KB
patch
obsolete
>From 0e652a09630db8170e20a79df7b1f3a1e8ee3354 Mon Sep 17 00:00:00 2001 >From: Martin Whitaker <mageia@martin-whitaker.me.uk> >Date: Sun, 2 Apr 2017 20:54:16 +0100 >Subject: [PATCH] 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). > >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); >-- >2.10.2 >
From 0e652a09630db8170e20a79df7b1f3a1e8ee3354 Mon Sep 17 00:00:00 2001 From: Martin Whitaker <mageia@martin-whitaker.me.uk> Date: Sun, 2 Apr 2017 20:54:16 +0100 Subject: [PATCH] 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). 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); -- 2.10.2
View Attachment As Raw
Actions:
View
Attachments on
bug 20619
: 9171 |
9172
|
9173