Bug 165864

Summary: resume won't work with label'd swap
Product: [Fedora] Fedora Reporter: Jeremy Katz <katzj>
Component: mkinitrdAssignee: Peter Jones <pjones>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: gajownik, kms, kzak, mitr, oliva
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-03 21:52:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 150222    
Attachments:
Description Flags
fix for LABEL= matching cut&pasto in swsuspdev none

Description Jeremy Katz 2005-08-12 21:42:52 UTC
The label/uuid finder in nash doesn't work with swap partitions.

Comment 1 Alexandre Oliva 2005-08-19 19:19:31 UTC
Created attachment 117923 [details]
fix for LABEL= matching cut&pasto in swsuspdev

Probably not a fix for the bug, but this at least silences the incorrect
attempt to readlink a LABEL= swap device.

Comment 2 Karel Zak 2005-11-14 10:52:33 UTC
Note that for information about filesystems you can use the /sbin/blkid command
(the mount and swapon use same method for work with LABELs -- so it's well
tested I hope reliable way).

# /sbin/blkid -l -t LABEL=swap | cut -d : -f 1
/dev/hda6

  --> returns a first device where LABEL="swap" (same way you can use for UUID)

/sbin/blkid -l -t TYPE=swsuspend | cut -d : -f 1

  --> returns a first device where filesystem type is "swsuspend" (S1SUSPEND or
S2SUSPEND header).

It might help you improve your initrd scripts.