<div dir="ltr">On Mon, Nov 24, 2014 at 2:59 AM, Zbigniew Jędrzejewski-Szmek <<a href="mailto:zbyszek@in.waw.pl">zbyszek@in.waw.pl</a>> wrote:<br>> On Thu, Nov 20, 2014 at 09:13:02AM +0200, Mantas Mikulėnas wrote:<br>> > ~ If there are two .swap units for the same partition (one made by<br>> > fstab-generator, another by gpt-generator), systemd tries to swapon it<br>> > twice, resulting in "swapon failed: Device or resource busy".<br>> IIUC, the problem is that swapons are called concurently, and one fails.<br>> If they were started sequentially, systemd would notice that they both<br>> refer to the same device and make one of the follow the other. What<br>> I'm guessing happens is that initially the units use different device<br>> names, so they are not merged. Could you post both units (systemctl cat<br>> would probably be best), so we can see what is going wrong?<br><br>Right, after all, since .swap unit names directly depend on device names, then it's pretty much guaranteed that the latter will differ...<br><br>What I have is:<br><br>---<br># /run/systemd/generator/dev-disk-by\x2dpartlabel-swap.swap<br># Automatically generated by systemd-fstab-generator<br><br>[Unit]<br>SourcePath=/etc/fstab<br>Documentation=man:fstab(5) man:systemd-fstab-generator(8)<br><br>[Swap]<br>What=/dev/disk/by-partlabel/swap<br>Options=rw<div>---</div><div><br><div>---<br># /run/systemd/generator.late/dev-sda7.swap<br># Automatically generated by systemd-gpt-auto-generator<br><br>[Unit]<br>Description=Swap Partition<br>Documentation=man:systemd-gpt-auto-generator(8)<br><br>[Swap]<br>What=/dev/sda7<br>---<br><br>-- <br>Mantas Mikulėnas <<a href="mailto:grawity@gmail.com">grawity@gmail.com</a>></div></div></div>