Hide Forgot
Description of problem: When creating a swap area on a raw partition, anaconda writes into /etc/fstab its device name: [root@rtt4 ~]# grep swap /etc/fstab /dev/sdb1 swap swap defaults 0 0 It would be better to write UUID=.. there: [root@rtt4 ~]# grep swap /etc/fstab UUID=bc5dfbff-424d-46b6-b388-17c96e76f969 swap swap defaults 0 0 When the order of devices changes (sda <-> sdb), system boots without swap attached. Version-Release number of selected component (if applicable): RHEL6.1-20110406.0 anaconda-13.21.111-1.el6 How reproducible: always Steps to Reproduce: 1. run graphical installation 2. create custom partitioning with swap on a raw partition (for example /dev/sdb1) 3. finish the installation and check /etc/fstab Actual results: [root@rtt4 ~]# grep swap /etc/fstab /dev/sdb1 swap swap defaults 0 0 Expected results: [root@rtt4 ~]# grep swap /etc/fstab UUID=bc5dfbff-424d-46b6-b388-17c96e76f969 swap swap defaults 0 0
Tested once more and this is more detailed reproducer: 1. install RHEL-5.7 on two zFCP LUNs, create a swap area on a plain partition (for example sdb2) 2. reboot into RHEL5 system, and run "blkid". The swap partition has no UUID defined: [root@rtt5 ~]# blkid /dev/sdb2: LABEL="SWAP-sdb2" TYPE="swap" /dev/sdb1: LABEL="/" UUID="0627e41e-6ab7-44a9-aa30-6bf9a9b74dbf" TYPE="ext3" /dev/sda1: LABEL="/boot" UUID="2deb0960-f66d-4a65-8d0a-7b5172db94f6" TYPE="ext3" 3. start installation of RHEL-6.1 4. select custom partitioning, reuse existing partitions for / and /boot, but do not format the swap partition. 5. finish the installation, reboot system and check /etc/fstab
Created attachment 517598 [details] screenshot of swap warning In anaconda-13.21.126 there's a warning about swap partition not having UUID assigned.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2011-1565.html