mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
Merge pull request #231097 from aanderse/lxc/nixos-rebuild-boot
This commit is contained in:
commit
5bb24e21ee
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue