Bug#939753: systemd fails to deactivate swap on reboot

Bjørn Mork bjorn at mork.no
Sun Sep 8 15:23:10 BST 2019


Michael Biebl <biebl at debian.org> writes:

> Control: tags -1 moreinfo
>
> Can you attach the output of blkid please.

canardo:/tmp# blkid
/dev/nvme0n1: PTUUID="397e5dc0-a3b9-42b1-a964-55fa71c8f070" PTTYPE="gpt"
/dev/nvme0n1p1: UUID="0759-95BE" TYPE="vfat" PARTUUID="6750d885-492b-4e6b-9ee1-2db6762b28e2"
/dev/nvme0n1p2: UUID="e3e2ae9b-c1a6-cc88-35ec-82a4f47a014f" UUID_SUB="2c5602e8-de14-8bcc-4108-d3a83274bfb7" LABEL="canardo:0" TYPE="linux_raid_member" PARTUUID="7af46f06-063f-469c-a886-11ee0c1ec6a2"
/dev/nvme0n1p3: UUID="2f3d4dc9-3580-1397-d3a0-07e9fdfd1576" UUID_SUB="d9aa3a60-ae9f-c67e-dc02-baeccd8acd0c" LABEL="canardo:1" TYPE="linux_raid_member" PARTUUID="0a170f26-360a-4bcb-9852-4cbab0729a8d"
/dev/nvme0n1p4: UUID="9e11359b-8347-4b75-a351-5edfbf843af6" TYPE="swap" PARTUUID="d482741d-2685-4206-b409-54708d2ff7b0"
/dev/md0: UUID="a01a8a4a-11be-4702-9e8f-abc2d5248134" TYPE="ext4"
/dev/md1: UUID="607785b3-2cd6-4030-a10d-16598229ec25" TYPE="ext4"
/dev/sda1: UUID="2EF6-0DDF" TYPE="vfat" PARTUUID="622d2b94-0276-4099-8801-a47fa03eb781"
/dev/sda2: UUID="e3e2ae9b-c1a6-cc88-35ec-82a4f47a014f" UUID_SUB="9cb747f5-dae9-89c7-d94a-e62c27e9d44b" LABEL="canardo:0" TYPE="linux_raid_member" PARTUUID="402e3a83-3030-4cf7-aedf-8da5864a1cb2"
/dev/sda3: UUID="2f3d4dc9-3580-1397-d3a0-07e9fdfd1576" UUID_SUB="e9d4b8c5-7410-d24c-9447-5976a8ffaaf6" LABEL="canardo:1" TYPE="linux_raid_member" PARTUUID="3fe8c3ff-4d49-4935-a965-02d83c6c38cf"
/dev/sdc1: UUID="799c6a0b-bb58-7d81-30fc-5d3f6e4ad2e5" UUID_SUB="36348661-d47b-3215-7ff0-51d7e1909696" LABEL="canardo:2" TYPE="linux_raid_member" PARTUUID="3e907e5f-bf8b-49f3-a2bb-052711c8e6f2"
/dev/sdb1: UUID="799c6a0b-bb58-7d81-30fc-5d3f6e4ad2e5" UUID_SUB="70d19626-6e1e-a269-db58-7df0f13a7bb8" LABEL="canardo:2" TYPE="linux_raid_member" PARTUUID="d153854a-25a1-4fac-a906-56a516489a50"
/dev/md2: UUID="5d7e8f84-08c8-42cb-86cf-c725a296cba1" TYPE="ext4"

> I suspect it is systemd-gpt-auto-generator which generates this swap
> unit based on the GPT information it finds (man 8
> systemd-gpt-auto-generator)
>
> You can of course disable that generator if you so desire.

Thanks.  Sounds like a good idea.

> First I'd like to figure out though why it finds a swap partitions which
> you say doesn't exist.

The partition exists.  But a swap partition isn't swap more than a Linux
partition is ext4


> If you run systemd-analyze set-log-level-debug; systemctl daemon-reload
> do you get any journal log messages from systemd-gpt-auto-generator ?

Can't get that to work

canardo:/tmp# systemd-analyze set-log-level-debug; systemctl daemon-reload
Unknown operation set-log-level-debug.


Bjørn



More information about the Pkg-systemd-maintainers mailing list