News for hackers. Stuff that matters.
Re:Booting ARM Linux the standard way by markstos on Wednesday March 09, 2022 @01:41PM (#30618383)
> There's going to be a lot of resistance to distros shipping a binary they didn't build from source.

Tow-Boot appears to be MIT Licensed. There appears to be nothing stopping them from building Tow-Boot from source.

Re:Booting ARM Linux the standard way by yjftsjthsd-h on Wednesday March 09, 2022 @01:52PM (#30618518)
Sure, there's no technical blocker, but the article seems to be implying that they shouldn't:

> One of the nice things about Tow-Boot is that it leverages the Nix build system to generate a nice reproducable build of the platform firmware. This should take away some of the doubts of having a prebuild platform firmware instead of every distribution figuring out how to do this from source. Also distributions not doing this from source would mean there's less chance of inconsistencies slipping in.

Re:Booting ARM Linux the standard way by edgyquant on Wednesday March 09, 2022 @04:27PM (#30620201)
What’s the difference between a reproducible binary and one they’ve built themselves? Can’t they just build it from source and check that the digests match?
Re:Booting ARM Linux the standard way by LanternLight83 on Wednesday March 09, 2022 @05:49PM (#30621016)
I mean heck, since it's a Nix Package, couldn't they just build it with Nix as the build system? And if for any reason that is the issue (installing Nix on a foreign distros can be pretty invasive, containerized?), the recipe for how to build it is right there.
Re:Booting ARM Linux the standard way by octoberfranklin on Wednesday March 09, 2022 @10:17PM (#30622862)
> installing Nix on a foreign distros can be pretty invasive

Is this some kind of joke?

Installing nix on a non-nixOS computer doesn't even require root. You can even bootstrap the entirety of nixpkgs that way. That's one of the most awesome things about nix and nixpkgs.

Re:Booting ARM Linux the standard way by edgyquant on Thursday March 10, 2022 @11:47AM (#30628992)
It most certainly does require root to install nix, as it needs the /nix directory on Linux to work
Re:Booting ARM Linux the standard way by octoberfranklin on Friday March 11, 2022 @06:51AM (#30638767)
That's like saying that logging in as an ordinary user "requires root" because otherwise /home/ordinary_user wouldn't exist. This is silly.

In any event, the nix store doesn't need to be in "/nix/store" anymore: https://nixos.wiki/wiki/Nix_Installation_Guide#nix_2.0.27s_n...

If you're willing to recompile the nix interpreter and sacrifice cached binaries you don't even need namespaces or ptrace. Just

  ./configure --with-store-dir=xyz
when you build the nix interpreter.
Re:Booting ARM Linux the standard way by MartijnBraam on Wednesday March 09, 2022 @01:44PM (#30618411)
But distros's don't have to. On most hardware it should be possible to flash Tow-Boot to some form of on-board boot storage and after that the board Just Works(tm)
Re:Booting ARM Linux the standard way by edgyquant on Wednesday March 09, 2022 @04:27PM (#30620214)
After doing the thing that most people won’t know how to or want to do, it just works.