Red Hat Bugzilla – Bug 79976
RFE: install /etc/fstab with 'TYPE=swap swap..."
Last modified: 2014-03-16 22:33:04 EDT
[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
Assigning to distribution as its a distribution level concern
Swap-by-label should be there now.