FS#66908 - [systemd] Ordering cycle reported, prevents non-root login
Attached to Project:
Arch Linux
Opened by Bastian Beranek (totsilence) - Friday, 05 June 2020, 08:14 GMT
Last edited by Dave Reisner (falconindy) - Thursday, 11 June 2020, 11:46 GMT
Opened by Bastian Beranek (totsilence) - Friday, 05 June 2020, 08:14 GMT
Last edited by Dave Reisner (falconindy) - Thursday, 11 June 2020, 11:46 GMT
|
Details
With systemd 245.6-2 I get error messages about units which
are deleted in order to break ordering cycles in the journal
(see below). This does not happen with systemd 245.5-2. I
also cannot login anymore with non-root users because of
pam_nologin:
Jun 05 09:35:49 bastian-desktop sddm[601]: Authentication error: "\"System is booting up. Unprivileged users are not permitted to log in yet. Please come back later. For technical details, see pam_nologin(8).\"" I believe these two issues to be related (maybe through sytemd-tmpfiles-setup?). Jun 05 09:35:40 bastian-desktop systemd[1]: sysinit.target: Job systemd-tmpfiles-setup.service/start deleted to break ordering cycle starting with sysinit.target/start Jun 05 09:35:40 bastian-desktop systemd[1]: sysinit.target: Job systemd-update-done.service/start deleted to break ordering cycle starting with sysinit.target/start Jun 05 09:35:40 bastian-desktop systemd[1]: sysinit.target: Job systemd-journal-catalog-update.service/start deleted to break ordering cycle starting with sysinit.target/start Jun 05 09:35:40 bastian-desktop systemd[1]: sysinit.target: Job local-fs.target/start deleted to break ordering cycle starting with sysinit.target/start Jun 05 09:35:41 bastian-desktop systemd[1]: sysinit.target: Job systemd-tmpfiles-setup.service/start deleted to break ordering cycle starting with sysinit.target/start Jun 05 09:35:41 bastian-desktop systemd[1]: systemd-update-done.service: Job systemd-journal-catalog-update.service/start deleted to break ordering cycle starting with systemd-update-done.service/start Jun 05 09:35:41 bastian-desktop systemd[1]: sysinit.target: Job local-fs.target/start deleted to break ordering cycle starting with sysinit.target/start Jun 05 09:35:41 bastian-desktop systemd[1]: local-fs.target: Job systemd-tmpfiles-setup.service/start deleted to break ordering cycle starting with local-fs.target/start Jun 05 09:35:41 bastian-desktop systemd[1]: local-fs.target: Job systemd-update-done.service/start deleted to break ordering cycle starting with local-fs.target/start Jun 05 09:35:41 bastian-desktop systemd[1]: local-fs.target: Job systemd-journal-catalog-update.service/start deleted to break ordering cycle starting with local-fs.target/start Jun 05 09:35:43 bastian-desktop systemd[1]: systemd-tmpfiles-setup.service: Job local-fs.target/start deleted to break ordering cycle starting with systemd-tmpfiles-setup.service/start Jun 05 09:35:43 bastian-desktop systemd[1]: sysinit.target: Job systemd-tmpfiles-setup.service/start deleted to break ordering cycle starting with sysinit.target/start Jun 05 09:35:43 bastian-desktop systemd[1]: sysinit.target: Job local-fs.target/start deleted to break ordering cycle starting with sysinit.target/start Jun 05 09:35:45 bastian-desktop systemd[1]: sysinit.target: Job systemd-update-done.service/start deleted to break ordering cycle starting with sysinit.target/start Jun 05 09:35:45 bastian-desktop systemd[1]: sysinit.target: Job systemd-journal-catalog-update.service/start deleted to break ordering cycle starting with sysinit.target/start Jun 05 09:35:45 bastian-desktop systemd[1]: sysinit.target: Job local-fs.target/start deleted to break ordering cycle starting with sysinit.target/start |
This task depends upon
Closed by Dave Reisner (falconindy)
Thursday, 11 June 2020, 11:46 GMT
Reason for closing: Not a bug
Additional comments about closing: configuration issue
Thursday, 11 June 2020, 11:46 GMT
Reason for closing: Not a bug
Additional comments about closing: configuration issue
For me it is enough to downgrade to systemd 245.6-1 to resolve the problem.
They look like:
$ cat /etc/systemd/system/data-nas.automount
[Unit]
Description=Automount NAS Share
After=network-online.target
Requires=network-online.target
[Automount]
Where=/data/nas
[Install]
WantedBy=multi-user.target
$ cat /etc/systemd/system/data-nas.mount
[Unit]
Description=NAS Share
[Mount]
What=//fritz.nas/fritz.nas
Where=/data/nas
Options=credentials=/etc/samba/creds/fritz.nas,noperm,noserverino,vers=3.0,iocharset=utf8,rw
Type=cifs
TimeoutSec=30
[Install]
WantedBy=multi-user.target
server.local:/mount/point /mount/point nfs noauto,noatime,x-systemd.automount,x-systemd.device-timeout=10,x-systemd.mount-timeout=10,timeo=10,x-systemd.idle-timeout=2min,x-systemd.requires=network-online.target,users,rsize=65536,wsize=65536,proto=tcp 0 0
Should we file an upstream bug? Why have you added the backports at all?
systemd 245.6-2 was the first actual release using 245.6, 245.6-1 only updated the pkgver. 245.6 added 124 commits.
Edit:
If everyone affected is using automount, 245.6 included [2] and [3]
[1] https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13776
[2] https://github.com/systemd/systemd-stable/commit/e1c091b6d4c55de5c5356e8ca5564dba6769b49f
[3] https://github.com/systemd/systemd-stable/commit/f1fb1971767d7b8a1fd220ecd074bbceaf34d556
1) login failure with 245.6-3
2) ordering cycle on mnt-nfs.automount
1) I could fix my login issue reverting https://github.com/systemd/systemd-stable/commit/7bc4bcea15aa837100284f7379f066f72b34b5b0
Everyone affected please rebuild systemd with pkgrel=3.1 and put "7bc4bcea15aa837100284f7379f066f72b34b5b0" into the revert array of the PKGBUILD and report back please.
2) I cannot revert these single two commits listed above. There a many more mount related commits so git revert fails. Probably that whole set of patches needs to be reverted.
I wonder why they introduced such a major thing into the stable branch.
Edit:
I mean leaving the PKGBUILD as was in 245.6.3, 7bc4bcea15aa837100284f7379f066f72b34b5b0 would need to be removed the reverts array.
Reported it upstream: https://github.com/systemd/systemd-stable/issues/69
> This was never the right thing to do. Cyclic dependencies existed because users
> decided to hand roll their own automount units with incorrect dependencies
> rather than relying on the fstab generator. Upstream changes simply exposed
> these always-wrong units as being wrong (albeit not in the best of ways).
> Upstream will *not* be reverting anything in the short or long term here,
> so neither should Arch. What upstream *is* doing is clarifying the documentation
> about automounts[0] to try to discouarge this in the future.
>
> I'm removing this revert to make sure that the next systemd build does not
> include this.
>
> [0] https://github.com/systemd/systemd/pull/16114
https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/systemd&id=6d04fea696912e467d295e02ab30163d15024f31