Bug 127892
| Summary: | swap uuid/label support | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Elliot Lee <sopwith> |
| Component: | anaconda | Assignee: | Jeremy Katz <katzj> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike McLean <mikem> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | CC: | joshua, mattdm, milan.kerslager, nobody+pnasrat |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | FC3 | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2005-03-22 03:57:43 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: | 123268, 133260 | ||
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? Added anaconda support in CVS. Swaps will be labeled as SWAP-device. So how to create label at post-install time on RHEL4 Beta 2? Yes, how does one create such a label? See the bug #152026 (RHEL4 related). |
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.