Description of problem: Installing Fedora 22 using the Beta TC2 boot image completes flawlessly. However, when booting into the new system, it turns out that swap space is disabled. The corresponding entry in /etc/fstab created by anaconda reads: /dev/mapper/VolGroup00-LogVol03 swap swap pri=-1 0 0 Version-Release number of selected component (if applicable): anaconda-22.20.4-1.fc22 How reproducible: Always Steps to Reproduce: 1. Install Fedora 22 from Beta TC2 boot image and restart. 2. Check available swap size. Actual results: Swap space is disabled, and thus, the size of the available swap space is 0. Expected results: Swap space is enabled. Additional info: After replacing option "pri=-1" for the swap volume by "defaults" in /etc/fstab and restarting the system, swap space is enabled as expected.
Fixed in https://github.com/rhinstaller/blivet/commit/441224973dc884f77d36464d221fb36a0007c1cb
anaconda-22.20.6-1.fc22, python-blivet-1.0.5-1.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/python-blivet-1.0.5-1.fc22,anaconda-22.20.6-1.fc22
systemd-fstab-generator upstream will now only warn about an invalid pri field. There's no need to be so strict about this: http://cgit.freedesktop.org/systemd/systemd/commit/?id=e0952d9d02
anaconda-22.20.6-1.fc22, python-blivet-1.0.5-1.fc22, libblockdev-0.7-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
(In reply to Zbigniew Jędrzejewski-Szmek from comment #3) > systemd-fstab-generator upstream will now only warn about an invalid pri > field. There's no need to be so strict about this: > > http://cgit.freedesktop.org/systemd/systemd/commit/?id=e0952d9d02 Thanks for this, Zbigniew!
*** Bug 1204336 has been marked as a duplicate of this bug. ***
I'm happy to see that bug fixed in systemd. On the other hand i'm still not happy to see pri=-1 value in /etc/fstab If it doesn't define in there it will be -1. It makes /etc/fstab look ugly. Instead of pri=-1 isn't it will be much better "defaults" value in /etc/fstab ? @David : the commit you mentioned in rhinstaller/blivet/blob/master/blivet/formats/swap.py not merged in master or reverted.
(In reply to Ömer Fadıl Usta from comment #7) > @David : the commit you mentioned in > rhinstaller/blivet/blob/master/blivet/formats/swap.py not merged in master > or reverted. The patch from the f22-branch has been ported to master so this should now be resolved. However, until a new blivet build is done for Rawhide, this won't be effective in installations.
(In reply to Ömer Fadıl Usta from comment #7) The /etc/fstab file is set up correctly when using Fedora 22 Beta TC4 images.
( I'm using rawhide thats the why i asked for merging to master not only for f22 branch )