Red Hat Bugzilla – Bug 466298
Feature request: implied kernel version
Last modified: 2009-05-06 11:47:38 EDT
Description of problem:
I frequently find myself having to run mkinitrd from the Fedora rescue disc in order to port an existing Fedora installation over to new hardware.
I type "mkinitrd -f /boot/i" and then the TAB key, then maybe one digit and TAB again, so now I have "mkinitrd -f /boot/initrd-22.214.171.124-29.fc9.x86_64.img". So far so good.
But now mkinitrd requires me to type out "126.96.36.199-29.fc9.x86_64" using my fingers (no cut-and-paste in rescue mode). This seems somewhat redundant to me, not to mention error-prone.
It would save a lot of time if initrd, seeing that the image file is called "initrd-XYZ.img", would look for kernel version XYZ if I didn't specify one explicitly. Of course if the image file isn't called that then mkinitrd would still require an explicit kernel version.
mkinitrd isn't going to grow this functionality, but dracut (which will hopefully be replacing mkinitrd in Fedora 12) already has this sort of thing