Skip to content

Please rename nix-store.squashfs to nix-store-${arch}.squashfs #83

Closed
fare opened this Issue Feb 7, 2013 · 5 comments

3 participants

@fare
fare commented Feb 7, 2013

To make a same USB key bootable on multiple architectures, e.g. i686, x86_64, arm4v, etc., please include the architecture and/or a complete name in the pathname of the nix-store file.

Alternatively, please make it easy and documented to specify an alternate name on the kernel boot command-line.

@shlevy
Official Nix/Nixpkgs/NixOS member
shlevy commented Feb 7, 2013

A single nix store (and thus, a single squashfs) can contain packages for multiple architectures.

@fare
fare commented Feb 7, 2013

Yes, but that's now how they are usually built or distributed.
Typically, I download two .iso images with the thing already built, and have grub select the correct image.
Currently, I have to have two partitions on my USB drive, one for each nix-store.squashfs.

@shlevy
Official Nix/Nixpkgs/NixOS member
shlevy commented Feb 7, 2013

Sure, but the solution is to build/distribute a multiarch cd :)

@fare
fare commented Feb 14, 2013

Yes, but unless you have great cross-compiling support, building a multiarch cd happens by fusing together single-arch cds. There's no good reason to put everything in a same /nix/store soup, and many reasons to keep things separate (so users can easily split the cd back, or extract a single arch from it). Mixing in a common soup only increases entropy for no obvious good use.

@domenkozar
Official Nix/Nixpkgs/NixOS member

Please open an issue at https://github.com/NixOS/nixpkgs/issues if issue persists.

@domenkozar domenkozar closed this May 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.