You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using lanzaboote for quite some time. Today I did a UEFI update which invalidates secure boot state. I re-enter the setup mode, sudo sbctl enroll-keys, toggle to secure boot user mode, and finally reboot and login with SB enabled -- everything is good so far.
Until now I want to tweak some config, but nixos-rebuild boot fails with a confusing error:
> sudo nixos-rebuild boot --flake .#invar
building the system configuration...
Installing Lanzaboote to "/boot"...
Failed to install generation.: No such file or directory (os error 2)
Failed to install bootloader
warning: error(s) occurred while switching to the new configuration
Output with --verbose
> sudo nixos-rebuild boot --flake .#invar --install-bootloader
$ nix --extra-experimental-features nix-command flakes build --out-link /tmp/nixos-rebuild.Avvmlj/nixos-rebuild .#nixosConfigurations."invar".config.system.build.nixos-rebuild -v
$ exec /nix/store/z9r4al5y5cbpfmzgz253q294lsqsc3hk-nixos-rebuild/bin/nixos-rebuild boot --flake .#invar -v
building the system configuration...
Building in flake mode.
$ nix --extra-experimental-features nix-command flakes build .#nixosConfigurations."invar".config.system.build.toplevel -v --out-link /tmp/nixos-rebuild.v8bGvl/result
$ nix-env -p /nix/var/nix/profiles/system --set /nix/store/hljpamlv5bmcwdq8cv4kv5c022799c00-nixos-system-invar-20241211.706adc0
$ systemd-run -E LOCALE_ARCHIVE -E NIXOS_INSTALL_BOOTLOADER= --collect --no-ask-password --pipe --quiet --service-type=exec --unit=nixos-rebuild-switch-to-configuration --wait true
Using systemd-run to switch configuration.
$ systemd-run -E LOCALE_ARCHIVE -E NIXOS_INSTALL_BOOTLOADER= --collect --no-ask-password --pipe --quiet --service-type=exec --unit=nixos-rebuild-switch-to-configuration --wait /nix/store/hljpamlv5bmcwdq8cv4kv5c022799c00-nixos-system-invar-20241211.706adc0/bin/switch-to-configuration boot
Installing Lanzaboote to "/boot"...
Failed to install generation.: No such file or directory (os error 2)
Failed to install bootloader
warning: error(s) occurred while switching to the new configuration
The result is the same with or without --install-bootloader.
It seems something went wrong when installing Lanzaboote bootloader, but the error message is quite vague. When I switch back from lanzaboote to systemd-boot, then nixos-rebuild boot completes successfully without warnings (except for unrelated repo-is-dirty).
With lanzaboote master 2f48272, the error message changes slightly:
Installing Lanzaboote to "/boot"...
Failed to install generation 432: Get stub name: No such file or directory (os error 2)
Failed to install bootloader
warning: error(s) occurred while switching to the new configuration
My ESP is mounted on `/boot`, and here's its content:
I'm using lanzaboote for quite some time. Today I did a UEFI update which invalidates secure boot state. I re-enter the setup mode,
sudo sbctl enroll-keys
, toggle to secure boot user mode, and finally reboot and login with SB enabled -- everything is good so far.Until now I want to tweak some config, but
nixos-rebuild boot
fails with a confusing error:Output with --verbose
The result is the same with or without
--install-bootloader
.It seems something went wrong when installing Lanzaboote bootloader, but the error message is quite vague. When I switch back from lanzaboote to systemd-boot, then
nixos-rebuild boot
completes successfully without warnings (except for unrelated repo-is-dirty).This is my config&rev: oxalica/nixos-config@706adc0 . It's using lanzaboote v0.4.1
With lanzaboote master 2f48272, the error message changes slightly:
My ESP is mounted on `/boot`, and here's its content:
The text was updated successfully, but these errors were encountered: