History log of /systemd/units/systemd-update-done.service.in
Revision Date Author Comments Expand
d6bc8348d5be8576a475ac8ced2b0146e60fb71f 25-Sep-2014 Daniel Buch <boogiewasthere@gmail.com>

readahead: wipe out readahead

/systemd/Makefile-man.am /systemd/Makefile.am /systemd/configure.ac /systemd/man/sd-daemon.xml /systemd/man/sd-login.xml /systemd/man/sd-readahead.xml /systemd/man/sd_readahead.xml /systemd/man/systemd-notify.xml /systemd/man/systemd-readahead-replay.service.xml /systemd/po/POTFILES.skip /systemd/shell-completion/zsh/_systemd /systemd/src/cryptsetup/cryptsetup-generator.c /systemd/src/gpt-auto-generator/gpt-auto-generator.c /systemd/src/notify/notify.c /systemd/src/readahead/Makefile /systemd/src/readahead/readahead-analyze.c /systemd/src/readahead/readahead-collect.c /systemd/src/readahead/readahead-common.c /systemd/src/readahead/readahead-common.h /systemd/src/readahead/readahead-replay.c /systemd/src/readahead/readahead.c /systemd/src/readahead/sd-readahead.c /systemd/src/readahead/test-ssd.c /systemd/src/systemd/sd-readahead.h /systemd/system-preset/90-systemd.preset .gitignore ldconfig.service quotaon.service.in system-update.target systemd-backlight@.service.in systemd-binfmt.service.in systemd-firstboot.service.in systemd-fsck-root.service.in systemd-fsck@.service.in systemd-journal-catalog-update.service.in systemd-modules-load.service.in systemd-quotacheck.service.in systemd-random-seed.service.in systemd-readahead-collect.service.in systemd-readahead-done.service.in systemd-readahead-done.timer systemd-readahead-drop.service systemd-readahead-replay.service.in systemd-remount-fs.service.in systemd-rfkill@.service.in systemd-sysctl.service.in systemd-sysusers.service.in systemd-tmpfiles-clean.service.in systemd-tmpfiles-setup-dev.service.in systemd-tmpfiles-setup.service.in systemd-udev-hwdb-update.service.in systemd-update-done.service.in systemd-update-utmp.service.in systemd-vconsole-setup.service.in
7caa86ac4d19f65e396d759bfb02b96646fc09eb 01-Jul-2014 Lennart Poettering <lennart@poettering.net>

man: document systemd-update-done.service

b63bb8a724cab7a315f04c3068f0d628cc163b8b 16-Jun-2014 Lennart Poettering <lennart@poettering.net>

units: drop RefuseManualStart= from a couple of update services The only update service we really need to guard like this is systemd-tmpfiles-setup.service since if invoked manually might create /var/run/nologin and thus blocking the user from login. The other services are pretty much idempotent and don't suffer by this problem, hence let's simplify them.

a55654d598c78f8e084aa6a18fec6eff900c9aed 13-Jun-2014 Lennart Poettering <lennart@poettering.net>

core: add new ConditionNeedsUpdate= unit condition This new condition allows checking whether /etc or /var are out-of-date relative to /usr. This is the counterpart for the update flag managed by systemd-update-done.service. Services that want to be started once after /usr got updated should use: [Unit] ConditionNeedsUpdate=/etc Before=systemd-update-done.service This makes sure that they are only run if /etc is out-of-date relative to /usr. And that it will be executed after systemd-update-done.service which is responsible for marking /etc up-to-date relative to the current /usr. ConditionNeedsUpdate= will also checks whether /etc is actually writable, and not trigger if it isn't, since no update is possible then.

8ea48dfcd33e8db0c01bf8c57c3bbcfdc3c86d4b 13-Jun-2014 Lennart Poettering <lennart@poettering.net>

update-done: add minimal tool to manage system updates for /etc and /var, if /usr has changed In order to support offline updates to /usr, we need to be able to run certain tasks on next boot-up to bring /etc and /var in line with the updated /usr. Hence, let's devise a mechanism how we can detect whether /etc or /var are not up-to-date with /usr anymore: we keep "touch files" in /etc/.updated and /var/.updated that are mtime-compared with /usr. This means: Whenever the vendor OS tree in /usr is updated, and any services that shall be executed at next boot shall be triggered, it is sufficient to update the mtime of /usr itself. At next boot, if /etc/.updated and/or /var/.updated is older than than /usr (or missing), we know we have to run the update tools once. After that is completed we need to update the mtime of these files to the one of /usr, to keep track that we made the necessary updates, and won't repeat them on next reboot. A subsequent commit adds a new ConditionNeedsUpdate= condition that allows checking on boot whether /etc or /var are outdated and need updating. This is an early step to allow booting up with an empty /etc, with automatic rebuilding of the necessary cache files or user databases therein, as well as supporting later updates of /usr that then propagate to /etc and /var again.