Unverified Commit 7d36daa7 authored by Peter Marshall's avatar Peter Marshall
Browse files

nixos/systemd-stage-1: follow systemd /run propagation

We currently bypass systemd's switch-root logic by premounting
/sysroot/run. Make sure to propagate its sub-mounts with the recursive
flag, in accordance with the default switch-root logic.

This is required for creds at /run/credentials to survive the transition
from initrd -> host.
parent aeb017b5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -642,7 +642,7 @@ in
        {
          where = "/sysroot/run";
          what = "/run";
          options = "bind";
          options = "rbind";
          unitConfig = {
            # See the comment on the mount unit for /run/etc-metadata
            DefaultDependencies = false;