Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Container switches revert on reboot (lxc-container module missing) (flakes-dnjc)

StatusDone
TypeBug
Priorityhigh

nixosConfigurations. lacks nixpkgs virtualisation/lxc-container.nix (only added by build-image –image-variant lxc), so switch-to-configuration never repoints /sbin/init. After a restart the container boots the original image system and re-registers it as the newest generation. Hit when onecli was restarted after an in-place switch (flakes-i9ao).

  • Import lxc-container.nix from packs/nixos/container
  • Redeploy onecli and yolo with the lxc-capable toplevel
  • Verify /sbin/init points at the new system and survives incus restart

Summary of Changes

packs/nixos/container/configuration.nix now imports modulesPath + /virtualisation/lxc-container.nix, so every container toplevel is the -lxc variant and its installBootLoader repoints /sbin/init on switch. build-image --image-variant lxc still evaluates (same module path, deduplicated). Redeployed onecli and yolo; incus restart onecli came back on the new system. yolo was switched but not restarted (its /sbin/init points at the new system).