Unverified Commit 14c48f98 authored by Lassulus's avatar Lassulus Committed by GitHub
Browse files

Merge pull request #211098 from Mic92/lxc-container

nixos/lxc-container: fix compatibility with systemd-nspawn
parents 2bb560b3 22a8cf0c
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -150,6 +150,12 @@ in
          source = config.system.build.toplevel + "/init";
          target = "/sbin/init";
        }
        # Technically this is not required for lxc, but having also make this configuration work with systemd-nspawn.
        # Nixos will setup the same symlink after start.
        {
          source = config.system.build.toplevel + "/etc/os-release";
          target = "/etc/os-release";
        }
      ];

      extraCommands = "mkdir -p proc sys dev";