Bug#985975: systemd: Setting swap using swap.target impossible
Chris Jackson
chriscf at gmail.com
Sat Mar 27 08:07:25 GMT 2021
Package: systemd
Version: 247.3-3
Severity: important
Dear Maintainer,
Setting swap using swap.target.wants dropins appears to be impossible
due to conflicting requirements.
Attempting to create a .swap file in
/etc/systemd/system/swap.target.wants/ yields the following warning when
attempting `systemctl restart swap.target`
swap.target: Wants dependency dropin
/etc/systemd/system/swap.target.wants/swapfile.swap is not a symlink,
ignoring.
Creating a symlink to a .swap file located in /usr/local/lib/systemd
yields the following:
/etc/systemd/system/swap.target.wants/./swapfile.swap: symlinks are not
allowed for units of this type, rejecting.
Can't use a symlink, can't use a non-symlink eiter.
-- Package-specific info:
-- System Information:
Debian Release: 10.8
APT prefers stable
APT policy: (990, 'stable'), (600, 'testing'), (500, 'testing-security'), (500, 'stable-updates')
Architecture: armhf (armv7l)
Kernel: Linux 5.10.0-0.bpo.4-armmp (SMP w/4 CPU threads)
Kernel taint flags: TAINT_CRAP, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages systemd depends on:
ii adduser 3.118
ii chrony [time-daemon] 4.0-6
ii libacl1 2.2.53-4
ii libapparmor1 2.13.2-10
ii libaudit1 1:2.8.4-3
ii libblkid1 2.33.1-0.1
ii libc6 2.31-9
ii libcap2 1:2.25-2
ii libcrypt1 1:4.4.17-1
ii libcryptsetup12 2:2.3.4-2
ii libgcrypt20 1.8.4-5
ii libgnutls30 3.7.0-7
ii libgpg-error0 1.35-1
ii libip4tc2 1.8.5-3~bpo10+1
ii libkmod2 26-1
ii liblz4-1 1.8.3-1
ii liblzma5 5.2.4-1
ii libmount1 2.36.1-7
ii libpam0g 1.3.1-5
ii libseccomp2 2.5.1-1
ii libselinux1 3.1-3
ii libsystemd0 247.3-3
ii libzstd1 1.4.8+dfsg-2.1
ii mount 2.33.1-0.1
ii util-linux 2.33.1-0.1
Versions of packages systemd recommends:
ii dbus 1.12.20-0+deb10u1
Versions of packages systemd suggests:
ii policykit-1 0.105-25
pn systemd-container <none>
Versions of packages systemd is related to:
pn dracut <none>
ii initramfs-tools 0.133+deb10u1
ii libnss-systemd 247.3-3
ii libpam-systemd 247.3-3
ii udev 247.3-1~bpo10+1
-- no debconf information
More information about the Pkg-systemd-maintainers
mailing list