Describe the bug
After updating to the latest nixos-unstable nixos-rebuild switch fails with error.
building the system configuration...
warning: Git tree '/home/dev/x/my/prj/nix' is dirty
updating systemd-boot from (249.7) to (250.4)
Source file "/nix/store/h5k31zlk8j216523prxwwqxn8bdlakpl-systemd-250.4/lib/systemd/boot/efi/systemd-bootaa64.efi" does not carry version information!
Source file "/nix/store/h5k31zlk8j216523prxwwqxn8bdlakpl-systemd-250.4/lib/systemd/boot/efi/systemd-bootaa64.efi" does not carry version information!
Traceback (most recent call last):
File "/nix/store/53c7jabsxd2wizryywviz4n8jk9cyb9y-systemd-boot", line 316, in <module>
main()
File "/nix/store/53c7jabsxd2wizryywviz4n8jk9cyb9y-systemd-boot", line 267, in main
subprocess.check_call(["/nix/store/h5k31zlk8j216523prxwwqxn8bdlakpl-systemd-250.4/bin/bootctl", "--path=/boot", "update"])
File "/nix/store/9zncdsgdwz3h7hnmfqnc0ya0c27hwfi7-python3-3.9.12/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/nix/store/h5k31zlk8j216523prxwwqxn8bdlakpl-systemd-250.4/bin/bootctl', '--path=/boot', 'update']' returned non-zero exit status 1.
warning: error(s) occurred while switching to the new configuration
Steps To Reproduce
Steps to reproduce the behavior:
- run
sudo nixos-rebuild switch --flake '.#dev-system
Expected behavior
The system should be updated without an error.
Screenshots
N/A
Additional context
The system is built using nix flakes
Notify maintainers
@flokli @kloenk @Mic92 @trofi
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
this path will be fetched (0.06 MiB download, 0.30 MiB unpacked):
/nix/store/vxi9xxfb59slzql57hbvrkvrac8khmkj-bash-interactive-5.1-p12-dev
copying path '/nix/store/vxi9xxfb59slzql57hbvrkvrac8khmkj-bash-interactive-5.1-p12-dev' from 'https://cache.nixos.org'...
- system: `"aarch64-linux"`
- host os: `Linux 5.15.13, NixOS, 22.05 (Quokka)`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.5.1`
- channels(root): `"nixos-22.05pre338578.a2e281f5770"`
- channels(dev): `""`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
[user@system:~]$ sudo nixos-rebuild boot
building Nix...
building the system configuration...
updating systemd-boot from (249.7) to (249.5)
Skipping "/boot/EFI/systemd/systemd-bootaa64.efi", since a newer boot loader version exists already.
Skipping "/boot/EFI/BOOT/BOOTAA64.EFI", since a newer boot loader version exists already.
Traceback (most recent call last):
File "/nix/store/s03ypdz6dwlgx97p74hqlx428rvwi6kn-systemd-boot", line 314, in <module>
main()
File "/nix/store/s03ypdz6dwlgx97p74hqlx428rvwi6kn-systemd-boot", line 267, in main
subprocess.check_call(["/nix/store/f4sblwaj2d09kgr3k1imw3mq8cxq3gk9-systemd-249.5/bin/bootctl", "--path=/boot", "update"])
File "/nix/store/aa9jdd3ijz3icvpahyl87z2dk0hlbw10-python3-3.9.6/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/nix/store/f4sblwaj2d09kgr3k1imw3mq8cxq3gk9-systemd-249.5/bin/bootctl', '--path=/boot', 'update']' returned non-zero exit status 1.
warning: error(s) occurred while switching to the new configuration
dev@devbox:~/x/my/prj/nix$ bootctl --path /boot status; echo $?
Failed to read "/boot/EFI/systemd": Permission denied
Failed to open "/boot/loader/loader.conf": Permission denied
System:
Firmware: UEFI 2.70 (EDK II 1.00)
Secure Boot: disabled
Setup Mode: user
TPM2 Support: no
Boot into FW: supported
Current Boot Loader:
Product: systemd-boot 249.7
Features: ✓ Boot counting
✓ Menu timeout control
✓ One-shot menu timeout control
✓ Default entry control
✓ One-shot entry control
✓ Support for XBOOTLDR partition
✓ Support for passing random seed to OS
✓ Boot loader sets ESP information
ESP: /dev/disk/by-partuuid/bdd476a4-8770-4e2f-8ec3-913e47fdf753
File: └─/EFI/systemd/systemd-bootaa64.efi
Random Seed:
Passed to OS: no
System Token: not set
Exists: no
Available Boot Loaders on ESP:
ESP: /boot (/dev/disk/by-partuuid/bdd476a4-8770-4e2f-8ec3-913e47fdf753)
Boot Loaders Listed in EFI Variables:
Title: Linux Boot Manager
ID: 0x0004
Status: active, boot-order
Partition: /dev/disk/by-partuuid/bdd476a4-8770-4e2f-8ec3-913e47fdf753
File: └─/EFI/systemd/systemd-bootaa64.efi
Boot Loader Entries:
$BOOT: /boot (/dev/disk/by-partuuid/bdd476a4-8770-4e2f-8ec3-913e47fdf753)
1
[user@system:~]$ bootctl status --no-variables
Failed to read "/boot/EFI/systemd": Permission denied
Failed to open "/boot/loader/loader.conf": Permission denied
System:
Firmware: UEFI 2.70 (EDK II 1.00)
Secure Boot: disabled
Setup Mode: user
TPM2 Support: no
Boot into FW: supported
Current Boot Loader:
Product: systemd-boot 249.7
Features: ✓ Boot counting
✓ Menu timeout control
✓ One-shot menu timeout control
✓ Default entry control
✓ One-shot entry control
✓ Support for XBOOTLDR partition
✓ Support for passing random seed to OS
✓ Boot loader sets ESP information
ESP: /dev/disk/by-partuuid/bdd476a4-8770-4e2f-8ec3-913e47fdf753
File: └─/EFI/systemd/systemd-bootaa64.efi
Random Seed:
Passed to OS: no
System Token: not set
Exists: no
Available Boot Loaders on ESP:
ESP: /boot (/dev/disk/by-partuuid/bdd476a4-8770-4e2f-8ec3-913e47fdf753)
Boot Loaders Listed in EFI Variables:
Title: Linux Boot Manager
ID: 0x0004
Status: active, boot-order
Partition: /dev/disk/by-partuuid/bdd476a4-8770-4e2f-8ec3-913e47fdf753
File: └─/EFI/systemd/systemd-bootaa64.efi
Boot Loader Entries:
$BOOT: /boot (/dev/disk/by-partuuid/bdd476a4-8770-4e2f-8ec3-913e47fdf753)
Describe the bug
After updating to the latest nixos-unstable
nixos-rebuild switchfails with error.Steps To Reproduce
Steps to reproduce the behavior:
sudo nixos-rebuild switch --flake '.#dev-systemExpected behavior
The system should be updated without an error.
Screenshots
N/A
Additional context
The system is built using nix flakes
Notify maintainers
@flokli @kloenk @Mic92 @trofi
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"and paste the result.