Mageia Bugzilla – Attachment 1285 Details for
Bug 3856
Duplicate 'init' kernel parameter generated in menu.lst with the latest kernel update
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
bootloader-duplicate-init.patch
bootloader-duplicate-init.patch (text/plain), 525 bytes, created by
JaromÃr CápÃk
on 2011-12-23 17:50:38 CET
(
hide
)
Description:
bootloader-duplicate-init.patch
Filename:
MIME Type:
Creator:
JaromÃr CápÃk
Created:
2011-12-23 17:50:38 CET
Size:
525 bytes
patch
obsolete
>--- bootloader.pm.orig 2011-12-15 00:03:46.000000000 +0100 >+++ bootloader.pm 2011-12-23 17:39:34.000000000 +0100 >@@ -723,7 +723,10 @@ > if (-e "$::prefix/bin/systemd") { > log::l("defaulting to systemd"); > #@$dict = grep { $_->[0] ne 'devfs' } @$dict; >- $v->{append} .= " init=/bin/systemd"; >+ $init_position = index($v->{append}, "init="); >+ if ($init_position < 0) { >+ $v->{append} .= " init=/bin/systemd"; >+ } > } > > #- new versions of yaboot do not handle symlinks
--- bootloader.pm.orig 2011-12-15 00:03:46.000000000 +0100 +++ bootloader.pm 2011-12-23 17:39:34.000000000 +0100 @@ -723,7 +723,10 @@ if (-e "$::prefix/bin/systemd") { log::l("defaulting to systemd"); #@$dict = grep { $_->[0] ne 'devfs' } @$dict; - $v->{append} .= " init=/bin/systemd"; + $init_position = index($v->{append}, "init="); + if ($init_position < 0) { + $v->{append} .= " init=/bin/systemd"; + } } #- new versions of yaboot do not handle symlinks
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 3856
: 1285