Mageia Bugzilla – Attachment 9821 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 (updated)
0005-installer-force-update-of-dev-disk-by-uuid-after-par.patch (text/plain), 1.96 KB, created by
Martin Whitaker
on 2017-12-08 10:09:47 CET
(
hide
)
Description:
Proposed fix (updated)
Filename:
MIME Type:
Creator:
Martin Whitaker
Created:
2017-12-08 10:09:47 CET
Size:
1.96 KB
patch
obsolete
>From ca3d4f7b0fd1a5753e6771229038a8c1464fdb8f 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 5/5] 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..cf8ff7da8 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-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. >+ 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 ca3d4f7b0fd1a5753e6771229038a8c1464fdb8f 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 5/5] 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..cf8ff7da8 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-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. + 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