mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 17:51:22 +03:00
953bf4604f
Note: the name is "system-update-cleanup.service" rather than "system-update-done.service", because it should not run normally, and also because there's already "systemd-update-done.service", and having them named so similarly would be confusing. In https://bugzilla.redhat.com/show_bug.cgi?id=1395686 the system repeatedly entered system-update.target on boot. Because of a packaging issue, the tool that created the /system-update symlink could be installed without the service unit that was supposed to perform the upgrade (and remove the symlink). In fact, if there are no units in system-update.target, and /system-update symlink is created, systemd always "hangs" in system-update.target. This is confusing for users, because there's no feedback what is happening, and fixing this requires starting an emergency shell somehow, and also knowing that the symlink must be removed. We should be more resilient in this case, and remove the symlink automatically ourselves, if there are no upgrade service to handle it. This adds a service which is started after system-update.target is reached and the symlink still exists. It nukes the symlink and reboots the machine. It should subsequently boot into the default default.target. This is a more general fix for https://bugzilla.redhat.com/show_bug.cgi?id=1395686 (the packaging issue was already fixed).
80 lines
2.1 KiB
Plaintext
80 lines
2.1 KiB
Plaintext
/user@.service.m4
|
|
/console-getty.service
|
|
/console-getty.service.m4
|
|
/container-getty@.service
|
|
/container-getty@.service.m4
|
|
/debug-shell.service
|
|
/emergency.service
|
|
/getty@.service
|
|
/halt-local.service
|
|
/initrd-cleanup.service
|
|
/initrd-parse-etc.service
|
|
/initrd-switch-root.service
|
|
/initrd-udevadm-cleanup-db.service
|
|
/kmod-static-nodes.service
|
|
/quotaon.service
|
|
/rc-local.service
|
|
/rescue.service
|
|
/serial-getty@.service
|
|
/system-update-cleanup.service
|
|
/systemd-ask-password-console.service
|
|
/systemd-ask-password-wall.service
|
|
/systemd-backlight@.service
|
|
/systemd-binfmt.service
|
|
/systemd-coredump@.service
|
|
/systemd-firstboot.service
|
|
/systemd-fsck-root.service
|
|
/systemd-fsck@.service
|
|
/systemd-machine-id-commit.service
|
|
/systemd-halt.service
|
|
/systemd-exit.service
|
|
/systemd-hibernate.service
|
|
/systemd-hostnamed.service
|
|
/systemd-hybrid-sleep.service
|
|
/systemd-importd.service
|
|
/systemd-initctl.service
|
|
/systemd-journal-catalog-update.service
|
|
/systemd-journal-flush.service
|
|
/systemd-journal-gatewayd.service
|
|
/systemd-journal-remote.service
|
|
/systemd-journal-upload.service
|
|
/systemd-journald.service
|
|
/systemd-kexec.service
|
|
/systemd-localed.service
|
|
/systemd-logind.service
|
|
/systemd-machined.service
|
|
/systemd-modules-load.service
|
|
/systemd-networkd-wait-online.service
|
|
/systemd-networkd.service
|
|
/systemd-networkd.service.m4
|
|
/systemd-nspawn@.service
|
|
/systemd-poweroff.service
|
|
/systemd-quotacheck.service
|
|
/systemd-random-seed.service
|
|
/systemd-reboot.service
|
|
/systemd-remount-fs.service
|
|
/systemd-resolved.service
|
|
/systemd-resolved.service.m4
|
|
/systemd-hibernate-resume@.service
|
|
/systemd-rfkill.service
|
|
/systemd-suspend.service
|
|
/systemd-sysctl.service
|
|
/systemd-sysusers.service
|
|
/systemd-timedated.service
|
|
/systemd-timesyncd.service
|
|
/systemd-tmpfiles-clean.service
|
|
/systemd-tmpfiles-setup-dev.service
|
|
/systemd-tmpfiles-setup.service
|
|
/systemd-tmpfiles.service
|
|
/systemd-hwdb-update.service
|
|
/systemd-udev-settle.service
|
|
/systemd-udev-trigger.service
|
|
/systemd-udevd.service
|
|
/systemd-update-done.service
|
|
/systemd-update-utmp-runlevel.service
|
|
/systemd-update-utmp.service
|
|
/systemd-user-sessions.service
|
|
/systemd-vconsole-setup.service
|
|
/tmp.mount
|
|
/user@.service
|