Mageia Bugzilla – Attachment 9805 Details for
Bug 22059
Incorrect UUID for /boot partition may be used when creating the initrd, leading to an unbootable system ( _only_ with stage2's diskdrake; diskdrake from drakxtools works fine)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Proposed fix
0002-installer-force-update-of-dev-disk-by-uuid-after-par.patch (text/plain), 1.99 KB, created by
Martin Whitaker
on 2017-11-27 16:20:09 CET
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Martin Whitaker
Created:
2017-11-27 16:20:09 CET
Size:
1.99 KB
patch
obsolete
>From 54d1b60fc4c2d9370b2cbd1f704eb324828d0952 Mon Sep 17 00:00:00 2001 >From: Martin Whitaker <mageia@martin-whitaker.me.uk> >Date: Mon, 27 Nov 2017 15:06:16 +0000 >Subject: [PATCH 2/2] installer: force update of /dev/disk/by-uuid after > partitioning (mga#22059) > >Because stage2 does not include the udev 60-blocks.rule, udev does not >automatically update the soft links in /dev/disk/by-uuid after we write >the partition table and format the partitions. We need these links to >be updated before we create the initrd. It would be cleaner to fix this >with a udev rule, but for now, use brute force. > >diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS >index de851578a..7e2ced932 100644 >--- a/perl-install/install/NEWS >+++ b/perl-install/install/NEWS >@@ -1,6 +1,8 @@ > - partitioning > o ensure device major/minor numbers are reread after writing the > partition table (mga#22032) >+ o ensure soft links in /dev/disk/by-uuid are updated so that valid >+ UUIDs are embedded in the initrd (mga#22059) > > Version 17.91 - 4 October 2017 > >diff --git a/perl-install/install/install2.pm b/perl-install/install/install2.pm >index 90759e651..8e3d23bb0 100644 >--- a/perl-install/install/install2.pm >+++ b/perl-install/install/install2.pm >@@ -213,6 +213,13 @@ sub formatPartitions { > } > installStepsCall($o, $auto, 'formatMountPartitions') if !$::testing; > >+ # Workaround for mga#22059. Because stage2 does not include the udev 60-blocks.rule, >+ # udev does not automatically update the soft links in /dev/disk/by-* after we write >+ # the partition table and format the partitions. When using encrypted partitions, we >+ # need these links to be updated before we create the initrd. It would be cleaner to >+ # fix this with a udev rule, but for now, use brute force. >+ run_program::run('udevadm', 'trigger', '--type=devices'); >+ > if ($want_root_formated) { > #- we formatted /, ensure /var/lib/rpm is cleaned otherwise bad things can happen > #- (especially when /var is *not* formatted) >-- >2.13.6 >
From 54d1b60fc4c2d9370b2cbd1f704eb324828d0952 Mon Sep 17 00:00:00 2001 From: Martin Whitaker <mageia@martin-whitaker.me.uk> Date: Mon, 27 Nov 2017 15:06:16 +0000 Subject: [PATCH 2/2] installer: force update of /dev/disk/by-uuid after partitioning (mga#22059) Because stage2 does not include the udev 60-blocks.rule, udev does not automatically update the soft links in /dev/disk/by-uuid after we write the partition table and format the partitions. We need these links to be updated before we create the initrd. It would be cleaner to fix this with a udev rule, but for now, use brute force. diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index de851578a..7e2ced932 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,6 +1,8 @@ - partitioning o ensure device major/minor numbers are reread after writing the partition table (mga#22032) + o ensure soft links in /dev/disk/by-uuid are updated so that valid + UUIDs are embedded in the initrd (mga#22059) Version 17.91 - 4 October 2017 diff --git a/perl-install/install/install2.pm b/perl-install/install/install2.pm index 90759e651..8e3d23bb0 100644 --- a/perl-install/install/install2.pm +++ b/perl-install/install/install2.pm @@ -213,6 +213,13 @@ sub formatPartitions { } installStepsCall($o, $auto, 'formatMountPartitions') if !$::testing; + # Workaround for mga#22059. Because stage2 does not include the udev 60-blocks.rule, + # udev does not automatically update the soft links in /dev/disk/by-* after we write + # the partition table and format the partitions. When using encrypted partitions, we + # need these links to be updated before we create the initrd. It would be cleaner to + # fix this with a udev rule, but for now, use brute force. + run_program::run('udevadm', 'trigger', '--type=devices'); + if ($want_root_formated) { #- we formatted /, ensure /var/lib/rpm is cleaned otherwise bad things can happen #- (especially when /var is *not* formatted) -- 2.13.6
View Attachment As Raw
Actions:
View
Attachments on
bug 22059
:
9805
|
9821