Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 491790 - systemd fails to start swap if fstab entry uses UUID
Summary: systemd fails to start swap if fstab entry uses UUID
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-20 17:45 UTC by Justin Lecher (RETIRED)
Modified: 2015-01-04 09:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lecher (RETIRED) gentoo-dev 2013-11-20 17:45:11 UTC
# grep swap /etc/fstab 
UUID="ce21a1d3-5394-4656-a3df-7f833d324202"   none                     swap    sw                              0            0

# systemctl status dev-disk-by\x2duuid-ce...2d5394\x2d4656\x2da3df\x2d7f833d324202.swap
dev-disk-byx2duuid-ce...2d5394x2d4656x2da3dfx2d7f833d324202.swap - /dev/disk/byx2duuid/ce...2d5394x2d4656x2da3dfx2d7f833d324202
   Loaded: loaded
   Active: failed (Result: exit-code) since Wed 2013-11-20 18:43:41 CET; 2s ago
     What: /dev/disk/byx2duuid/ce...2d5394x2d4656x2da3dfx2d7f833d324202
  Process: 2937 ExecActivate=/sbin/swapon /dev/disk/byx2duuid/ce...2d5394x2d4656x2da3dfx2d7f833d324202 (code=exited, status=255)

Nov 20 18:43:41 leo.jlec.de swapon[2937]: swapon: stat failed /dev/disk/byx2duuid/ce...2d5394x2d4656x2da3dfx2d7f833d324202: No such file or directory
Nov 20 18:43:41 leo.jlec.de systemd[1]: dev-disk-byx2duuid-ce...2d5394x2d4656x2da3dfx2d7f833d324202.swap swap process exited, code=exited status=255
Nov 20 18:43:41 leo.jlec.de systemd[1]: Failed to activate swap /dev/disk/byx2duuid/ce...2d5394x2d4656x2da3dfx2d7f833d324202.
Nov 20 18:43:41 leo.jlec.de systemd[1]: Unit dev-disk-byx2duuid-ce...2d5394x2d4656x2da3dfx2d7f833d324202.swap entered failed state.
Comment 1 Agostino Sarubbo gentoo-dev 2014-12-31 19:19:18 UTC
This was fixed a year ago in this commit:

http://cgit.freedesktop.org/systemd/systemd/commit/?id=9670d58

Please test and close if it works.
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2015-01-04 09:38:39 UTC
Still exeists, although the error is a little different

systemctl status dev-disk-by\\x2duuid-ce21a1d3\\x2d5394\\x2d4656\\x2da3df\\x2d7f833d324202.swap
● dev-disk-by\x2duuid-ce21a1d3\x2d5394\x2d4656\x2da3df\x2d7f833d324202.swap - /dev/disk/by-uuid/ce21a1d3-5394-4656-a3df-7f833d324202
   Loaded: loaded (/etc/fstab)
   Active: failed (Result: exit-code) since Sun 2015-01-04 10:21:40 CET; 18min ago
     What: /dev/disk/by-uuid/ce21a1d3-5394-4656-a3df-7f833d324202
     Docs: man:fstab(5)
           man:systemd-fstab-generator(8)
  Process: 483 ExecActivate=/sbin/swapon /dev/disk/by-uuid/ce21a1d3-5394-4656-a3df-7f833d324202 (code=exited, status=255)

Jan 04 10:21:40 leo.jlec.de swapon[483]: swapon: /dev/disk/by-uuid/ce21a1d3-5394-4656-a3df-7f833d324202: swapon failed: Device or resource busy
Jan 04 10:21:40 leo.jlec.de systemd[1]: Activated swap /dev/disk/by-uuid/ce21a1d3-5394-4656-a3df-7f833d324202.
Jan 04 10:21:40 leo.jlec.de systemd[1]: dev-disk-by\x2duuid-ce21a1d3\x2d5394\x2d4656\x2da3df\x2d7f833d324202.swap swap process exited, code=exited status=255
Jan 04 10:21:40 leo.jlec.de systemd[1]: Unit dev-disk-by\x2duuid-ce21a1d3\x2d5394\x2d4656\x2da3df\x2d7f833d324202.swap entered failed state.