Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 439710 - must use UUID to specify swap device to resume
must use UUID to specify swap device to resume
Product: Fedora
Classification: Fedora
Component: mkinitrd (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Peter Jones
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-03-30 17:29 EDT by John Reiser
Modified: 2009-05-06 16:24 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-05-05 17:52:41 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description John Reiser 2008-03-30 17:29:07 EDT
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):

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"
Actual results:
resume /sys/block/sdb//sdb5

Expected results:
resume /sys/block-by-uuid/323775cc-302e-487d-823d-ad874f246696

Additional info:
Comment 1 Jeremy Katz 2008-04-23 22:37:37 EDT
I believe we should be doing the right thing here now, aren't we?
Comment 2 John Reiser 2008-04-24 19:08:18 EDT
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
Comment 3 John Reiser 2008-04-24 23:41:26 EDT
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.]

Comment 4 Bug Zapper 2008-05-14 04:27:11 EDT
Changing version to '9' as part of upcoming Fedora 9 GA.
More information and reason for this action is here:
Comment 5 Jeremy Katz 2009-05-05 17:52:41 EDT
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
Comment 6 John Reiser 2009-05-06 16:24:43 EDT
Fedora 10 kernel-PAE- and mkinitrd-6.0.71-4.fc10.i386 use, for instance: 
   resume UUID=8d42befb-a4b8-4393-ac4f-4b2282402b45

Note You need to log in before you can comment on or make changes to this bug.