diff --git a/modules/platforms/lxc.nix b/modules/platforms/lxc.nix index 77fe82c..412e3e2 100644 --- a/modules/platforms/lxc.nix +++ b/modules/platforms/lxc.nix @@ -5,4 +5,10 @@ boot.loader.grub.enable = false; boot.loader.systemd-boot.enable = false; + + # LXC containers share the host kernel — Proxmox starts them by exec'ing + # /sbin/init directly, no bootloader/initrd involved. Without this, that + # file doesn't correctly launch the current generation, so even a + # correctly-installed system can fail to come up after reboot. + boot.loader.initScript.enable = true; }