Description of problem: The name of the first swap device at mkinitrd time is listed in the constructed /init using a lettered spindle partition name, for example "resume /sys/block/sda//sda5". However, there is no guarantee that later the partition name designates the same device at subsequent boots, so the 'resume' command might specify the wrong partition (a different spindle). For an example, see https://bugzilla.redhat.com/show_bug.cgi?id=439695#c3 where the partition name changed from sda5 to sdb5 with no changes in hardware, just a change in {kernel, mkinitrd}. Version-Release number of selected component (if applicable): mkinitrd-6.0.40-1.fc9.x86_64 How reproducible: always Steps to Reproduce: 1. install new kernel, or run mkinitrd directly 2. inspect initial ram fs using "zcat /boot/initrd-....img | cpio -id" then "grep resume ./init" 3. Actual results: resume /sys/block/sdb//sdb5 Expected results: resume /sys/block-by-uuid/323775cc-302e-487d-823d-ad874f246696 Additional info:
I believe we should be doing the right thing here now, aren't we?
No, the Fedora 9 Preview DVD for i386 still uses a spindled drive letter. ----- $ zcat /boot/initrd-2.6.25-0.234.rc9.git1.fc9.i686.img | cpio -id $ grep resume ./init resume /dev/sdc5 ### bad $ rpm -q kernel mkinitrd kernel-2.6.25-0.234.rc9.git1.fc9.i686 mkinitrd-6.0.47-1.fc9.i386 $ -----
I still see the problem in today's rawhide. After running "yum update kernel mkinitrd" on the system installed from F9 Preview for i386, initrd-2.6.25-1.fc9.i686.img shows "resume /dev/sdd5" instead of "resume UUID=..." [or something; I don't know what the syntax should be.] kernel-2.6.25-1.fc9.i686 mkinitrd-6.0.49-1.fc9.i386
Changing version to '9' as part of upcoming Fedora 9 GA. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
This looks good leading up to Fedora 11 (it's based on what is in /etc/fstab) and I'm pretty sure was good in F10
Fedora 10 kernel-PAE-2.6.27.21-170.2.56.fc10.i686 and mkinitrd-6.0.71-4.fc10.i386 use, for instance: resume UUID=8d42befb-a4b8-4393-ac4f-4b2282402b45