[Fedora-i18n-bugs] [Bug 545499] system-config-language does not fixup /boot/grub/grub.conf for dracut

bugzilla at redhat.com bugzilla at redhat.com
Tue Jun 22 17:57:59 UTC 2010


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=545499

--- Comment #16 from Hans de Goede <hdegoede at redhat.com> 2010-06-22 13:57:55 EDT ---
(In reply to comment #15)

> only the command /sbin/new-kernel-pkg --package kernel --dracut --install
> $(uname -r) seems to work...    

There is no single magic commandline you will need to either parse the output
of rpm -q kernel + rpm -q kernel-PAE, or better us the rpm python bindings to
get the versions of the installed kernels your self and then for each version
run:
/sbin/new-kernel-pkg --package kernel --dracut --install <version>

For example on my system "rpm -q kernel" gives:
kernel-2.6.33-0.48.rc8.git4.local.fc13.x86_64
kernel-2.6.33-0.52.rc8.git6.fc13.x86_64
kernel-2.6.33-9.local.fc13.x86_64
kernel-2.6.33-9.local2.fc13.x86_64
kernel-2.6.33.1-13.local3.fc13.x86_64
kernel-2.6.34-0.11.rc1.git1.local3.fc14.x86_64
kernel-2.6.33.1-13.local4.fc13.x86_64
kernel-2.6.33.1-26.fc13.x86_64

(yeah I need to cleanup a bit I guess)

So you should run:
/sbin/new-kernel-pkg --package kernel --dracut --install
2.6.33-0.48.rc8.git4.local.fc13.x86_64
/sbin/new-kernel-pkg --package kernel --dracut --install
2.6.33-0.52.rc8.git6.fc13.x86_64
/sbin/new-kernel-pkg --package kernel --dracut --install
2.6.33-9.local.fc13.x86_64
<etc>

I'm sure I can whip up a bash script doing what you need, but there is little
point in that as you should be able to do the parsing and looping just fine in
python.

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the i18n-bugs mailing list