mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
Merge pull request #211098 from Mic92/lxc-container
nixos/lxc-container: fix compatibility with systemd-nspawn
This commit is contained in:
commit
14c48f9864
@ -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 New Issue
Block a user