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 #18 from Hans de Goede <hdegoede(a)redhat.com> 2010-06-23 05:03:04 EDT
---
(In reply to comment #17)
Ah! you completely misunderstood me. The problem is not with parsing
command
line, what I am saying is that command
/sbin/new-kernel-pkg --package kernel --dracut --install $(uname -r)
is working but other commands like
/sbin/new-kernel-pkg --package kernel --dracut --install
2.6.33-0.48.rc8.git4.local.fc13.x86_64
are not working. They do not write anything in /etc/grub.conf.
All that $(uname -r) does is run "uname -r" and put the output on the cmdline,
so on my system, where uname -r gives:
[hans@localhost ~]$ uname -r
2.6.33.1-13.local4.fc13.x86_64
Doing:
/sbin/new-kernel-pkg --package kernel --dracut --install $(uname -r)
Is *exactly* the same as doing:
/sbin/new-kernel-pkg --package kernel --dracut --install
2.6.33.1-13.local4.fc13.x86_64
Note that rpm -q kernel gives:
[hans@localhost ~]$ rpm -q kernel
kernel-2.6.33-0.48.rc8.git4.local.fc13.x86_64
<snip>
kernel-2.6.33.1-13.local4.fc13.x86_64
kernel-2.6.33.1-26.fc13.x86_64
You can make the parsing of the output somewhat more easier by doing:
rpm --queryformat "%{VERSION}-%{RELEASE}.%{ARCH}\n" -q kernel
rpm --queryformat "%{VERSION}-%{RELEASE}.%{ARCH}.PAE\n" -q kernel-PAE
Note that normally one of these 2 commands will output:
package kernel is not installed
resp:
package kernel-PAE is not installed
The other command will give a list of all version strings to pass to
new-kernel-pkg (one by one)
--
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.