| 4 Mar 2025 |
emily | (but like I said I guess irrelevant since running the daemon in stage 1 is nuts) | 14:02:39 |
raitobezarius | (actually) | 14:02:53 |
Arian | me sweats I’m not supposed to run `nix-daemon in stage1? | 14:02:56 |
raitobezarius | (there's a good reason to do that: store verification) | 14:02:58 |
raitobezarius | and people who does fancy immutable A/B schemas might do nix-build in stage 1 | 14:03:16 |
raitobezarius | to obtain their upgrades | 14:03:18 |
raitobezarius | because the userspace is under dm-verity | 14:03:27 |
raitobezarius | this is your last chance to swap the dm-verity by something else | 14:03:38 |
emily | I was thinking about that, but I figured anyone implementing such a scheme would take my statement as a compliment | 14:04:19 |
Arian | anyhow we could just make /init a shell script that calls systemd and does this for us I guess | 14:04:24 |
Arian | Orrrr… patch systemd | 14:04:29 |
raitobezarius | In reply to @emilazy:matrix.org I was thinking about that, but I figured anyone implementing such a scheme would take my statement as a compliment which I did :D | 14:04:35 |
emily | I did try and fail to nerd snipe ElvishJerricco with the three words "nix store netboot" months ago | 14:04:49 |
raitobezarius | for this, you would need a Linus Heckemann and snowboot | 14:05:04 |
Arian | that’s basically what I am doing at work but in a not so good way | 14:05:05 |
Arian | we just do a nix-store —realise && kexec | 14:05:25 |
Arian | in late boot | 14:05:29 |
emily | yeah that's basically what I was imagining | 14:05:37 |
emily | with a disk-backed store, so you get caching | 14:05:50 |
raitobezarius | i need that but for… embedded systems, anyway | 14:06:16 |
Arian | Reason why I am doing this is because if your /etc/ is a bunch of symlinks to /nix/store sysusers and systemd-firstboot just write to files in the /nix/store when you’re not careful lol | 14:06:59 |
Arian | which is not great | 14:07:02 |
emily | ok I know this is a total digression at this point but given the problems with booting with kexec, has anyone managed to get Linux running in the UEFI boot services environment? like just have it not exit that so you can use Linux to prepare an image to boot in the "normal" UEFI way | 14:07:02 |
raitobezarius | yes | 14:07:11 |
raitobezarius | it's called LinuxBoot | 14:07:19 |
raitobezarius | i mean | 14:07:27 |
emily | hmm I thought LinuxBoot rather replaced UEFI | 14:07:28 |
raitobezarius | not exactly ok | 14:07:29 |
Ilan Joselevich (Kranzes) | tvix boot but awesome | 14:07:29 |
raitobezarius | no you're right | 14:07:33 |