forked from mirrors/nixpkgs
nixos/lxc-container: fix compatibility with systemd-nspawn
This commit is contained in:
parent
63435ecbd9
commit
22a8cf0c28
|
@ -150,6 +150,12 @@ in
|
||||||
source = config.system.build.toplevel + "/init";
|
source = config.system.build.toplevel + "/init";
|
||||||
target = "/sbin/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";
|
extraCommands = "mkdir -p proc sys dev";
|
||||||
|
|
Loading…
Reference in a new issue