| 4 Mar 2025 |
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 |
raitobezarius | some of the linuxboot pieces does kexec | 14:07:37 |
raitobezarius | here's another one | 14:07:41 |
Arian | LennartOS | 14:07:46 |
raitobezarius | it's not Linux | 14:07:48 |
raitobezarius | but | 14:07:48 |
raitobezarius | https://github.com/u-root/u-root | 14:07:54 |
raitobezarius | close enough | 14:07:55 |
raitobezarius | u-root has a UEFI BootServices-only Linux loader | 14:08:09 |
emily | I guess the real problem with kexec is Linux drivers getting hardware into unusual state though. so the hard part is not running Linux drivers | 14:08:15 |