Bug 127892 - swap uuid/label support
swap uuid/label support
Product: Fedora
Classification: Fedora
Component: anaconda (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeremy Katz
Mike McLean
Depends On:
Blocks: FC3Target 133260
  Show dependency treegraph
Reported: 2004-07-14 18:38 EDT by Elliot Lee
Modified: 2007-11-30 17:10 EST (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-03-21 22:57:43 EST
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 Elliot Lee 2004-07-14 18:38:40 EDT
Here's what the swap header looks like:

At offset 0, the structure:
struct swap_header_v1_1 {
        char         uuid[16];
        char         volume_name[16];
	char         bootbits[1024-32];    /* Space for disklabel */
	unsigned int version;
	unsigned int last_page;
	unsigned int nr_badpages;
	unsigned int padding[125];
	unsigned int badpages[1];

At offset getpagesize()-10, the characters "SWAPSPACE2".

mkswap will have a -L label, and swapon will start accepting UUID= and
LABEL=, and that should about be it.
Comment 1 Jeremy Katz 2004-09-27 17:32:58 EDT
mkswap doesn't have a -L option right now, which is going to make this
kind of difficult to do :-)

What's up with the util-linux side?
Comment 2 Jeremy Katz 2004-09-28 17:14:20 EDT
Added anaconda support in CVS.  Swaps will be labeled as SWAP-device.
Comment 3 Milan Kerslager 2004-12-07 15:00:04 EST
So how to create label at post-install time on RHEL4 Beta 2?
Comment 4 Joshua Jensen 2005-03-22 00:53:04 EST
Yes, how does one create such a label?
Comment 5 Milan Kerslager 2005-03-29 11:31:08 EST
See the bug #152026 (RHEL4 related).

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