Bug 79976 - RFE: install /etc/fstab with 'TYPE=swap swap..."
RFE: install /etc/fstab with 'TYPE=swap swap..."
Product: Red Hat Linux
Classification: Retired
Component: distribution (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2002-12-18 05:14 EST by Stig Hackvan
Modified: 2014-03-16 22:33 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-03-02 13:37:30 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 Stig Hackvan 2002-12-18 05:14:52 EST
[installer, swapon, & maybe kernel] feature request:

once upon a time (2000), i filed a bug <<
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=8957 >> recommending that
the installer label partitions to take the guesswork out of future installations.

subsequently, i recommended that partitions be mounted according to their labels
so as to allow disks to be moved around more easily.  

these things have mostly been done, but the latter is incomplete.  swap
partitions are still hardwired device numbers in /etc/fstab and that dashes
one's hopes of cleanly relocating drives...  (lilo gags on relocation, too, but
maybe grub gets it right...  after all, win2000 can be moved from hda to hdc
without a hitch...)

so, it would be good for the combination of
installer/initscripts/fstab/swapon/kernel to all manage the moral equivalent of

for sp in $(for d in $(egrep -l '^disk$' /proc/ide/*/media /dev/null | sed
's,.*/\(.*\)/media,\1,'); do fdisk -l /dev/$d ; done | grep '82  Linux swap' |
sed 's/ .*//'); do echo swapon $sp; done
Comment 1 Jeremy Katz 2003-01-28 01:03:53 EST
Assigning to distribution as its a distribution level concern
Comment 2 Bill Nottingham 2005-03-02 13:37:30 EST
Swap-by-label should be there now.

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