Created
August 24, 2021 11:53
-
-
Save superherointj/5c2a8574e63366f2c4df4cf3506ee0f3 to your computer and use it in GitHub Desktop.
NixOS Error on nixos-rebuild switch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nixos-rebuild switch | |
Traceback (most recent call last): | |
File "/nix/store/4rj0wczwfbfkb63zxyypsbzsazpdcqyk-systemd-boot", line 240, in main | |
write_entry(*gen, machine_id) | |
File "/nix/store/4rj0wczwfbfkb63zxyypsbzsazpdcqyk-systemd-boot", line 103, in write_entry | |
subprocess.check_call([append_initrd_secrets, "/boot%s" % (initrd)]) | |
File "/nix/store/4s0h5aawbap3xhldxhcijvl26751qrjr-python3-3.8.9/lib/python3.8/subprocess.py", line 359, in check_call | |
retcode = call(*popenargs, **kwargs) | |
File "/nix/store/4s0h5aawbap3xhldxhcijvl26751qrjr-python3-3.8.9/lib/python3.8/subprocess.py", line 340, in call | |
with Popen(*popenargs, **kwargs) as p: | |
File "/nix/store/4s0h5aawbap3xhldxhcijvl26751qrjr-python3-3.8.9/lib/python3.8/subprocess.py", line 858, in __init__ | |
self._execute_child(args, executable, preexec_fn, close_fds, | |
File "/nix/store/4s0h5aawbap3xhldxhcijvl26751qrjr-python3-3.8.9/lib/python3.8/subprocess.py", line 1704, in _execute_child | |
raise child_exception_type(errno_num, err_msg, err_filename) | |
OSError: [Errno 8] Exec format error: '/nix/store/32x897p81pdxf2j2ns10m3k163pmx9f5-append-initrd-secrets/bin/append-initrd-secrets' | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/nix/store/4rj0wczwfbfkb63zxyypsbzsazpdcqyk-systemd-boot", line 274, in <module> | |
main() | |
File "/nix/store/4rj0wczwfbfkb63zxyypsbzsazpdcqyk-systemd-boot", line 244, in main | |
print("ignoring profile '{}' in the list of boot entries because of the following error:\n{}".format(profile, e), file=sys.stderr) | |
UnboundLocalError: local variable 'profile' referenced before assignment | |
warning: error(s) occurred while switching to the new configuration |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment