Open willghatch opened 2 years ago
tl;dr Seems like sd-aarch64-installer
is not an installer image (anymore) but a no-installer image (now)
I took a look into this issue and found that it goes a little bit deeper:
aarch64
formats happened in 2019: https://github.com/nix-community/nixos-generators/pull/25
installer/cd-dvd/sd-image-aarch64.nix
(emphasis on cd-dvd in nixpkgs
nixpkgs
to installer/sd-card/sd-image-aarch64.nix
nixpkgs
split the original installer image to make it more modular: https://github.com/NixOS/nixpkgs/commit/3c744bf68d0dbfbe18f9b0d5487b843f29ed47c1
sd-image-aarch64.nix
refers now to a non-installer image and sd-image-aarch64-installer.nix
refers to the installer images (it imports the installer-device.nix
profile)nixpkgs
: https://github.com/nix-community/nixos-generators/commit/5d39e9b4d3608b346e03a346601825cdcd556b74
installer/*.nix
modules are considered a public "API" I don't know). Since then the sd-aarch64-installer
format doesn't seem to build an installer image anymore (Bear with me, I haven't tried. I could have missed something).A potential fix for this would be to adjust the sd-aarch64
& sd-aarch64-installer
formats accordingly in this repo. The sd-aarch64
format could probably be simplified. The downside is that if someone figured the same things out in the meantime when using this repo (and not opening an issue), the API of nixos-generators
would break for them. Could be a bit of a tricky API migration :confused: (I haven't checked how this repo is released/versioned)
The
sd-aarch64-installer
format just references the nix installer which works generically for Raspberry Pi 3 and 4. However, thesd-aarch64
(no -installer) only supports the Raspberry Pi 3.