Mageia Bugzilla – Attachment 3685 Details for
Bug 8717
On installing a new kernel on a system with root on LVM, root=/dev/VGname/LVname gets mangled to root=/dev/
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
real fix
8717.diff (text/plain), 665 bytes, created by
Thierry Vignaud
on 2013-04-02 21:26:44 CEST
(
hide
)
Description:
real fix
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2013-04-02 21:26:44 CEST
Size:
665 bytes
patch
obsolete
>diff --git a/perl-install/standalone/bootloader-config b/perl-install/standalone/bootloader-config >index b68cef0..bb4bdb1 100755 >--- a/perl-install/standalone/bootloader-config >+++ b/perl-install/standalone/bootloader-config >@@ -153,7 +153,9 @@ sub add_kernel() { > return; > } > >- my $root_part = fs::get::root([ fs::get::fstab($all_hds) ]) or die "cannot find root partition\n"; >+ my $fstab = [ fs::get::fstab($all_hds) ]; >+ my $root_part = fs::get::root($fstab); >+ is_empty_hash_ref($root_part) and die "cannot find root partition\n"; > my %opts = ( > root => fs::wild_device::from_part('', $root_part), > initrd_options => $initrd_options,
diff --git a/perl-install/standalone/bootloader-config b/perl-install/standalone/bootloader-config index b68cef0..bb4bdb1 100755 --- a/perl-install/standalone/bootloader-config +++ b/perl-install/standalone/bootloader-config @@ -153,7 +153,9 @@ sub add_kernel() { return; } - my $root_part = fs::get::root([ fs::get::fstab($all_hds) ]) or die "cannot find root partition\n"; + my $fstab = [ fs::get::fstab($all_hds) ]; + my $root_part = fs::get::root($fstab); + is_empty_hash_ref($root_part) and die "cannot find root partition\n"; my %opts = ( root => fs::wild_device::from_part('', $root_part), initrd_options => $initrd_options,
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 8717
:
3684
|
3685
|
3686
|
3688
|
3689
|
3691