Merge pull request #231097 from aanderse/lxc/nixos-rebuild-boot
This commit is contained in:
commit
5bb24e21ee
|
@ -161,6 +161,11 @@ in
|
|||
extraCommands = "mkdir -p proc sys dev";
|
||||
};
|
||||
|
||||
system.build.installBootLoader = pkgs.writeScript "install-lxd-sbin-init.sh" ''
|
||||
#!${pkgs.runtimeShell}
|
||||
ln -fs "$1/init" /sbin/init
|
||||
'';
|
||||
|
||||
# Add the overrides from lxd distrobuilder
|
||||
# https://github.com/lxc/distrobuilder/blob/05978d0d5a72718154f1525c7d043e090ba7c3e0/distrobuilder/main.go#L630
|
||||
systemd.packages = [
|
||||
|
|
Loading…
Reference in a new issue