Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#67120 - [systemd-swap] service fails with 4.2.3-1

Attached to Project: Community Packages
Opened by helle vaanzinn (glitsj16) - Friday, 26 June 2020, 13:53 GMT
Last edited by Felix Yan (felixonmars) - Friday, 26 June 2020, 16:16 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The systemd-swap service fails after upgrading to 4.2.3-1. This is caused by broken files:
- /usr/bin/systemd-swap
- /usr/lib/systemd/system/systemd-swap.service file

Additional info:
* package version(s)

$ pacman -Q systemd-swap
systemd-swap 4.2.3-1

* config and/or log files etc.


$ systemctl status systemd-swap
● systemd-swap.service - Manage swap spaces on zram, files and partitions....
Loaded: loaded (/usr/lib/systemd/system/systemd-swap.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2020-06-26 15:07:33 CEST; 3min 2s ago
Main PID: 717 (code=exited, status=1/FAILURE)

Jun 26 15:07:32 lab16 systemd[1]: Starting Manage swap spaces on zram, files and partitions....
Jun 26 15:07:33 lab16 systemd-swap[717]: /usr/bin/systemd-swap: line 180: /build/systemd-swap/pkg/systemd-swap/usr/share/systemd-swap/swap-default.conf: No such file or directory
Jun 26 15:07:33 lab16 systemd-swap[717]: ERRO: Error loading /build/systemd-swap/pkg/systemd-swap/usr/share/systemd-swap/swap-default.conf
Jun 26 15:07:33 lab16 systemd[1]: systemd-swap.service: Main process exited, code=exited, status=1/FAILURE
Jun 26 15:07:33 lab16 systemd[1]: systemd-swap.service: Failed with result 'exit-code'.
Jun 26 15:07:33 lab16 systemd[1]: Failed to start Manage swap spaces on zram, files and partitions..

$ cat /usr/lib/systemd/system/systemd-swap.service
[Unit]
Description=Manage swap spaces on zram, files and partitions.

[Service]
Type=notify
NotifyAccess=exec
ExecStart=/build/systemd-swap/pkg/systemd-swap/usr/bin/systemd-swap start
ExecStop=/build/systemd-swap/pkg/systemd-swap/usr/bin/systemd-swap stop
RemainAfterExit=true
TimeoutStopSec=600
OOMScoreAdjust=-1000
CPUSchedulingPolicy=fifo
CPUSchedulingPriority=20
CapabilityBoundingSet=CAP_SYS_ADMIN CAP_SYS_MODULE
DeviceAllow=block-zram rw
DeviceAllow=block-sd r
DeviceAllow=block-blkext r
IPAddressDeny=any
NoNewPrivileges=true
PrivateNetwork=true
PrivateTmp=true
ProtectClock=true
ProtectControlGroups=true
ProtectHome=read-only
ProtectHostname=true
ProtectKernelLogs=true
ProtectSystem=full
RestrictAddressFamilies=AF_UNIX
RestrictNamespaces=true
RestrictSUIDSGID=true
SystemCallArchitectures=native
SystemCallFilter=@system-service @swap @module

[Install]
WantedBy=multi-user.target

$ grep /build/systemd-swap/pkg/systemd-swap /usr/bin/systemd-swap
readonly ETC_SYSD="/build/systemd-swap/pkg/systemd-swap/etc/systemd"
readonly VEN_SYSD="/build/systemd-swap/pkg/systemd-swap/usr/lib/systemd"
readonly DEF_CONFIG="/build/systemd-swap/pkg/systemd-swap/usr/share/systemd-swap/swap-default.conf"


* link to upstream bug report, if any

Haven't had the time to check upstream.

Steps to reproduce:

(1) install/upgrade systemd-swap
(2) start the service

Removing "/build/systemd-swap/pkg/systemd-swap" from both files restores regular functionality.
This task depends upon

Closed by  Felix Yan (felixonmars)
Friday, 26 June 2020, 16:16 GMT
Reason for closing:  Fixed
Additional comments about closing:  4.2.3-2
Comment by helle vaanzinn (glitsj16) - Friday, 26 June 2020, 14:06 GMT
UPDATE: the issue has been reported upstream: https://github.com/Nefelim4ag/systemd-swap/issues/150

Loading...