summaryrefslogtreecommitdiff
path: root/units/initrd-switch-root.service
Commit message (Collapse)AuthorAgeFilesLines
* core/systemctl: when switching root default to /sysroot/Lennart Poettering2023-04-281-1/+1
| | | | | | | | | We hardcode the path the initrd uses to prepare the final mount point at so many places, let's also imply it in "systemctl switch-root" if not specified. This adds the fallback both to systemctl and to PID 1 (this is because both to — different – checks on the path).
* units: make sure that initrd-switch-root.service pulls in .targetZbigniew Jędrzejewski-Szmek2022-09-151-0/+1
| | | | | | | Normally we queue initrd-switch-root.target/isolate, which pulls in the service via Wants= in the .target unit file. But if the service is instead started directly, there may be nothing pulling in the target. Let's make sure that the reference exists.
* units: reorder/split unit dependency blocksZbigniew Jędrzejewski-Szmek2022-09-151-2/+4
| | | | | | | | | | | | | The block is reordered and split to have: 1. description + documentation 2. (optionally) conditions 3. all the dependencies I think it's easier to read the units this way. Also, the Conflicts+Before is seperated out to separate lines. The ordering dependency is "fake", because it could just as well be After=, we are adding it to force ordering wrt. shutdown.target, and it plays a different role than the other Before=, which are about a real ordering on boot.
* license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
|
* units: upgrade initrd check Conditions to AssertsLennart Poettering2020-07-291-1/+1
| | | | | It's a bug if an initrd unit is run on the host. Hence let's upgrade the conditions to asserts.
* units: drop full paths for utilities in $PATHZbigniew Jędrzejewski-Szmek2020-01-201-0/+20
| | | | | | | This makes things a bit simpler and the build a bit faster, because we don't have to rewrite files to do the trivial substitution. @rootbindir@ is always in our internal $PATH that we use for non-absolute paths, so there should be no functional change.
* build-sys: don't hard-code binary paths in initrd-*.serviceMichael Biebl2013-03-091-19/+0
| | | | Instead use @bindir@ for udevadm and @rootbindir@ for systemctl.
* initrd: add unit files needed for basic systemd-in-initrd supportTom Gundersen2013-03-011-0/+19
This will: * mount all configured filesystems (typically the rootfs on /sysroot) * reload the configuration to pick up anything from the mounted fs (typically /sysroot/etc/fstab) * mount any newly configured filesystems (typically /usr on /sysroot/usr, if applicable) * shut-down and clean-up any daemons running in the initramfs (typically udevd) * switch-root to /sysroot and start the real init For an example of what files should be included in an initramfs based on this see <https://mailman.archlinux.org/pipermail/arch-projects/2013-February/003628.html>. Cc: Harald Hoyer <harald.hoyer@gmail.com> Cc: Dave Reisner <d@falconindy.com>