diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-03-26 22:40:40 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-04-20 18:26:17 +0200 |
commit | 29a24ab28e9790680348b1ffab653a321fa49a67 (patch) | |
tree | 6bf35850f80c21a86728106ed767e88a72bc4658 /units/systemd-volatile-root.service.in | |
parent | ee7561d014d073944779e155271d7042d7ea5572 (diff) | |
download | systemd-29a24ab28e9790680348b1ffab653a321fa49a67.tar.gz |
fstab-generator: if usr= is specified, mount it to /sysusr/usr/ first
This changes the fstab-generator to handle mounting of /usr/ a bit
differently than before. Instead of immediately mounting the fs to
/sysroot/usr/ we'll first mount it to /sysusr/usr/ and then add a
separate bind mount that mounts it from /sysusr/usr/ to /sysroot/usr/.
This way we can access /usr independently of the root fs, without for
waiting to be mounted via the /sysusr/ hierarchy. This is useful for
invoking systemd-repart while a root fs doesn't exist yet and for
creating it, with partition data read from the /usr/ hierarchy.
This introduces a new generic target initrd-usr-fs.target that may be
used to generically order services against /sysusr/ to become available.
Diffstat (limited to 'units/systemd-volatile-root.service.in')
-rw-r--r-- | units/systemd-volatile-root.service.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/units/systemd-volatile-root.service.in b/units/systemd-volatile-root.service.in index 5ecc702b6d..468d85f968 100644 --- a/units/systemd-volatile-root.service.in +++ b/units/systemd-volatile-root.service.in @@ -12,7 +12,7 @@ Description=Enforce Volatile Root File Systems Documentation=man:systemd-volatile-root.service(8) DefaultDependencies=no Conflicts=shutdown.target -After=sysroot.mount systemd-repart.service +After=sysroot.mount sysroot-usr.mount systemd-repart.service Before=initrd-root-fs.target shutdown.target AssertPathExists=/etc/initrd-release |