Merge pull request #211098 from Mic92/lxc-container

nixos/lxc-container: fix compatibility with systemd-nspawn
This commit is contained in:
Lassulus 2023-01-16 17:31:25 +01:00 committed by GitHub
commit 14c48f9864
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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";