Mageia Bugzilla – Attachment 6208 Details for
Bug 11827
initrd missing for newest kernel after upgrading with classical iso when using grub2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
add support for --reinstall-bootloader
reinst.diff (text/plain), 1.50 KB, created by
Thierry Vignaud
on 2015-04-07 12:44:51 CEST
(
hide
)
Description:
add support for --reinstall-bootloader
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2015-04-07 12:44:51 CEST
Size:
1.50 KB
patch
obsolete
>diff --git a/perl-install/standalone/bootloader-config b/perl-install/standalone/bootloader-config >index 9b6a021..a7cdf5e 100755 >--- a/perl-install/standalone/bootloader-config >+++ b/perl-install/standalone/bootloader-config >@@ -37,11 +37,12 @@ usage: bootloader-config --action add-kernel (--image <vmlinuz> | --kernel-versi > > bootloader-config --action update-splash > bootloader-config --action remove-splash >+ bootloader-config --action reinstall-bootloader > bootloader-config --action rebuild-initrds > bootloader-config --action migrate-to-uuids > EOF > >-my @known_actions = qw(add-kernel remove-kernel update-splash remove-splash rebuild-initrds migrate-to-uuids detectloader add-entry remove-entry add-resume2); >+my @known_actions = qw(add-kernel remove-kernel update-splash remove-splash reinstall-bootloader rebuild-initrds migrate-to-uuids detectloader add-entry remove-entry add-resume2); > $action && member($action, @known_actions) or die "<action> must be one of " . join(' ', @known_actions) . "\n"; > > if ($image) { >@@ -232,6 +233,11 @@ sub add_resume2() { > } > > #-############################################################################### >+sub reinstall_bootloader() { >+ bootloader::action($bootloader, 'when_config_changed') if !$no_launch; >+} >+ >+#-############################################################################### > sub rebuild_initrds() { > bootloader::rebuild_initrds($bootloader); > bootloader::action($bootloader, 'when_config_changed') if !$no_launch;
diff --git a/perl-install/standalone/bootloader-config b/perl-install/standalone/bootloader-config index 9b6a021..a7cdf5e 100755 --- a/perl-install/standalone/bootloader-config +++ b/perl-install/standalone/bootloader-config @@ -37,11 +37,12 @@ usage: bootloader-config --action add-kernel (--image <vmlinuz> | --kernel-versi bootloader-config --action update-splash bootloader-config --action remove-splash + bootloader-config --action reinstall-bootloader bootloader-config --action rebuild-initrds bootloader-config --action migrate-to-uuids EOF -my @known_actions = qw(add-kernel remove-kernel update-splash remove-splash rebuild-initrds migrate-to-uuids detectloader add-entry remove-entry add-resume2); +my @known_actions = qw(add-kernel remove-kernel update-splash remove-splash reinstall-bootloader rebuild-initrds migrate-to-uuids detectloader add-entry remove-entry add-resume2); $action && member($action, @known_actions) or die "<action> must be one of " . join(' ', @known_actions) . "\n"; if ($image) { @@ -232,6 +233,11 @@ sub add_resume2() { } #-############################################################################### +sub reinstall_bootloader() { + bootloader::action($bootloader, 'when_config_changed') if !$no_launch; +} + +#-############################################################################### sub rebuild_initrds() { bootloader::rebuild_initrds($bootloader); bootloader::action($bootloader, 'when_config_changed') if !$no_launch;
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 11827
:
4545
|
4546
|
4549
|
4550
|
4552
|
4566
|
4815
|
5825
|
5826
|
5868
| 6208 |
6744