summaryrefslogtreecommitdiff
path: root/src/boot/ostree-prepare-root.service
Commit message (Collapse)AuthorAgeFilesLines
* Update FSF license notices to use URL instead of addressJoseph Marrero2021-12-071-3/+1
|
* boot: Replace deprecated StandardOutput=syslog with journal, etc.Simon McVittie2020-08-211-2/+2
| | | | | | | systemd deprecated this in v246. Resolves: #2169 Signed-off-by: Simon McVittie <smcv@collabora.com>
* ostree-prepare-root: Requires=sysroot.mountColin Walters2020-05-081-0/+1
| | | | | | | | | | | With just `After=` we'll still try to run in the scenario where `sysroot.mount` fails because the rootfs didn't appear. And this will end up spewing an error which can confuse people into thinking something is wrong at the ostree level. This has come up numerous times w/{Fedora,RHEL} CoreOS, most recently while looking at https://bugzilla.redhat.com/show_bug.cgi?id=1803130
* ostree-prepare-root.service: Run earlier in initrdJonathan Lebon2018-10-191-3/+2
| | | | | | | | | | | | | | | | | | | | | Previously, we were preparing the root very late in the boot process; right before we switch root. The issue with that is that most services in the initrd that run `After=initrd-root-fs.target` expect that `/sysroot` already points to the rootfs we'll be pivoting to. Running this late violates that assumption. This patch fixes this by making `ostree-prepare-root.service` instead run right after `sysroot.mount` (the physical sysroot mounted by systemd) but still before `initrd-root-fs.target` (which is the target signalling that `/sysroot` is now valid and ready). This should make it easier to integrate OSTree with other initrd services such as Ignition. Related: https://github.com/dustymabe/ignition-dracut/issues/20 Closes: #1759 Approved by: cgwalters
* ostree-prepare-root.service: Use RemainAfterExit=yesJonathan Lebon2018-10-191-0/+1
| | | | | | | | | For the same reasons as #1697. This is especially important in services that are likely to be used as an `After/Before=` target in other units. `ostree-prepare-root.service` is one such service. Closes: #1759 Approved by: cgwalters
* boot: Add Documentation= lines to servicesJonathan Lebon2018-10-051-0/+1
| | | | | | | | | It's a neat way to point folks to the documentation (of course, better would be to have man pages for each of those services). Also consistently use Title Case everywhere. Closes: #1750 Approved by: cgwalters
* boot: Use emergency.target, not emergency.serviceAlex Kiernan2018-07-031-1/+1
| | | | | | | | | | | | Follow systemd units in using emergency.target, not emergency.service (which is the sole unit, by default, in emergency.target) so we can easily reconfigure the units which are actived when entering emergency mode. Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Closes: #1665 Approved by: cgwalters
* Move ostree-* executables to /usr/lib/ostreeGatis Paeglis2016-08-111-1/+1
| | | | | | | | | | | | | | | | | Why not to use libexecdir? Because this directory does not exist on some distros or paths between distros varies. There are several reasons why a well known path is prefered, for example when generating a kernel command line: init=${ostree}/usr/lib/ostree-boot/ostree-prepare-root In addition this saves us some typing in a console when wanting to access the "ostree" cmd line. Closes: #449 Approved by: cgwalters
* ostree-prepare-root.service: Also order before plymouth-switch-root.serviceColin Walters2014-01-271-0/+1
| | | | | In the OSTree model, /sysroot gets set up twice. We need to ensure that the /sysroot plymouth sees is only after OSTree has set it up.
* Add support for mkinitcpioDaniel Narvaez2013-10-241-0/+32
https://bugzilla.gnome.org/show_bug.cgi?id=710682