Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colemickens/b56f05cd8982ccd614c2a6f273b11c59 to your computer and use it in GitHub Desktop.
Save colemickens/b56f05cd8982ccd614c2a6f273b11c59 to your computer and use it in GitHub Desktop.
> sudo nix --experimental-features 'nix-command flakes' --pure-eval build --profile /nix/var/nix/profiles/system github:colemickens/nixcfg/main#nixosConfigurations.xeep.config.system.build.toplevel
trace: ___________________ SYS=x86_64-linux HOSTNAME=xeep
~/code/nixcfg main ------------------------------------------------------------------ 7s direnv impure nix 16:57:50
> ls -al ./result
lrwxrwxrwx 1 root root 84 Jul 22 16:57 ./result -> /nix/store/b8lg5yam4d5slnhqhxb9xy8yqgf4632i-nixos-system-xeep-20.09.20200719.5717d9d
~/code/nixcfg main ---------------------------------------------------------------------- direnv impure nix 16:58:12
> sudo nix --experimental-features 'nix-command flakes' --pure-eval shell -vv /nix/store/i528s9gybwrpn1anfrd67z3jg2n96gxi-nixos-system-xeep-20.09.20200719.5717d9d -c switch-to-configuration switch
Traceback (most recent call last):
File "/nix/store/nw6hfg5y5q9lbciq36awbhyigww0p0kx-systemd-boot-builder.py", line 256, in <module>
main()
File "/nix/store/nw6hfg5y5q9lbciq36awbhyigww0p0kx-systemd-boot-builder.py", line 225, in main
write_entry(*gen, machine_id)
File "/nix/store/nw6hfg5y5q9lbciq36awbhyigww0p0kx-systemd-boot-builder.py", line 95, in write_entry
subprocess.check_call([append_initrd_secrets, "/boot%s" % (initrd)])
File "/nix/store/7q4crsd8kvmma32ff2xw4w9ydj5k26cy-python3-3.8.3/lib/python3.8/subprocess.py", line 359, in check_call
retcode = call(*popenargs, **kwargs)
File "/nix/store/7q4crsd8kvmma32ff2xw4w9ydj5k26cy-python3-3.8.3/lib/python3.8/subprocess.py", line 340, in call
with Popen(*popenargs, **kwargs) as p:
File "/nix/store/7q4crsd8kvmma32ff2xw4w9ydj5k26cy-python3-3.8.3/lib/python3.8/subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/nix/store/7q4crsd8kvmma32ff2xw4w9ydj5k26cy-python3-3.8.3/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/nix/store/0yjyqy39s4jflyiww0xcfqbp81x6h9lz-append-initrd-secrets/bin/append-initrd-secrets'
@colemickens
Copy link
Author

> file $(head -1 ./result/append-initrd-secrets | cut -d ' ' -f 1 | cut -c 3-)
/nix/store/c4wxsn4jays9j31y5z9f83nr2cp7l4pa-bash-4.4-p23/bin/bash: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /nix/store/bpgdx6qqqzzi3szb0y3di3j3660f3wkj-glibc-2.31/lib/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, not stripped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment