3
0
Fork 0
forked from mirrors/nixpkgs

nixos/lxc-container: fix compatibility with systemd-nspawn

This commit is contained in:
Jörg Thalheim 2023-01-16 15:50:30 +01:00
parent 63435ecbd9
commit 22a8cf0c28

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