Your message dated Sat, 27 Mar 2021 21:22:37 +0100
with message-id <e1f0c889-71ab-8aea-2ada-057cdbb74...@debian.org>
and subject line Re: Bug#985975: systemd: Setting swap using swap.target
impossible
has caused the Debian Bug report #985975,
regarding systemd: Setting swap using swap.target impossible
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
985975: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=985975
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
Am 27.03.21 um 10:46 schrieb Michael Biebl:
/usr/local/lib/systemd is not in systemd's search path for units (see
"systemd-analyze unit-paths").
Please place the file either in /etc/systemd/system/ or
/usr/local/lib/systemd/system/. The former is probably a bit more
suitable for local configuration like this.
Then create the symlink in /etc/systemd/system/swap.target.wants/
Let's close this. I'm pretty sure it works if you move the unit file to
the correct place.
Regards,
MIchael
OpenPGP_signature
Description: OpenPGP digital signature
--- End Message ---