Bug 165864 - resume won't work with label'd swap
Summary: resume won't work with label'd swap
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: mkinitrd
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Peter Jones
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks: FC5Blocker
TreeView+ depends on / blocked
 
Reported: 2005-08-12 21:42 UTC by Jeremy Katz
Modified: 2007-11-30 22:11 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-02-03 21:52:30 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
fix for LABEL= matching cut&pasto in swsuspdev (590 bytes, patch)
2005-08-19 19:19 UTC, Alexandre Oliva
no flags Details | Diff

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.



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