On Mon, Nov 24, 2014 at 2:59 AM, Zbigniew Jędrzejewski-Szmek <
zbys...@in.waw.pl> wrote:
> On Thu, Nov 20, 2014 at 09:13:02AM +0200, Mantas Mikulėnas wrote:
> > ~ If there are two .swap units for the same partition (one made by
> > fstab-generator, another by gpt-generator), systemd tries to swapon it
> > twice, resulting in "swapon failed: Device or resource busy".
> IIUC, the problem is that swapons are called concurently, and one fails.
> If they were started sequentially, systemd would notice that they both
> refer to the same device and make one of the follow the other. What
> I'm guessing happens is that initially the units use different device
> names, so they are not merged. Could you post both units (systemctl cat
> would probably be best), so we can see what is going wrong?

Right, after all, since .swap unit names directly depend on device names,
then it's pretty much guaranteed that the latter will differ...

What I have is:

# /run/systemd/generator/dev-disk-by\x2dpartlabel-swap.swap
# Automatically generated by systemd-fstab-generator

Documentation=man:fstab(5) man:systemd-fstab-generator(8)


# /run/systemd/generator.late/dev-sda7.swap
# Automatically generated by systemd-gpt-auto-generator

Description=Swap Partition


Mantas Mikulėnas <graw...@gmail.com>
systemd-devel mailing list

Reply via email to