| 19 Mar 2022 |
@elvishjerricco:matrix.org | And I also intend to have a manual exclusion list | 10:05:52 |
Arian | do we have some target we want to optimise for? I supposed 1/2 the amount of minimal RAM we recommend? | 10:06:03 |
@elvishjerricco:matrix.org | Arian: The best I've gotten is about 20M and that's still too much | 10:06:07 |
Arian | why is 20M too much? | 10:06:14 |
@elvishjerricco:matrix.org | Because I don't want the new initramfs to be twice as big as the old one | 10:06:27 |
Arian | why not? | 10:06:32 |
@elvishjerricco:matrix.org | And a lot of people have small /boot partitions | 10:06:34 |
Arian | ah yeh that's a good argument | 10:06:42 |
@elvishjerricco:matrix.org | it's already a problem for plenty of users to see /boot filling up | 10:06:44 |
bobvanderlinden | Hmm, at the moment, mine is 18M (/boot/kernels/9cvnrh9wh6r707klrv7aawl8zm8w22rs-initrd-linux-5.15.27-initrd) | 10:07:08 |
@elvishjerricco:matrix.org | Also, on some systems I'm pretty sure the decompression of the initramfs is extremely costly | 10:07:14 |
Arian | but what if we have a /boot/nix/store and initrd is just a small thing mounting that :Exploding head: | 10:07:23 |
@elvishjerricco:matrix.org | my rpi boots with EFI and Grub and it takes 3 minutes to reach the kernel | 10:07:27 |
Arian | then we can have garbage collection etc :P | 10:07:31 |
@elvishjerricco:matrix.org | that's... actually an incredibly interesting idea lol | 10:07:51 |
@elvishjerricco:matrix.org | In reply to @bobvanderlinden_:matrix.org Hmm, at the moment, mine is 18M (/boot/kernels/9cvnrh9wh6r707klrv7aawl8zm8w22rs-initrd-linux-5.15.27-initrd) That's impressive | 10:08:06 |
@elvishjerricco:matrix.org | Er, is that the systemd one or a regular one | 10:08:24 |
@elvishjerricco:matrix.org | * Er, is that the systemd one or a regular one? | 10:08:26 |
Arian | current one I suppose | 10:08:31 |
Arian | Does FAT32 support hardlinks? | 10:08:38 |
Arian | probably not right? | 10:08:49 |
@elvishjerricco:matrix.org | no idea | 10:08:55 |
| * colemickens had historically seen that on rpi but it went away after some recent updates to grub/uboot or the rpi firmware iirc | 10:08:59 |
Arian | still. proper nix store on the ESP doesn't sound too wild. Sounds like a good idea | 10:09:08 |
@elvishjerricco:matrix.org | Arian: That wouldn't work exactly, as it wouldn't be compressed. | 10:09:31 |
@elvishjerricco:matrix.org | But something in that direction, like an extra boot stage, is interesting | 10:09:59 |
Arian | stage 1.5 | 10:10:13 |
@elvishjerricco:matrix.org | I will not be pursuing this madness for the sake of my own sanity :P | 10:10:34 |
bobvanderlinden | Do any of you have experience with advanced mkOptions and submodules?
I'm trying to make the systemd units, services, mounts, etc options reusable for systemd, systemd-user and systemd-initramfs. What would be a good approach?
I have worked on a solution that still feels quite dirty, but it is easily reusable: https://github.com/bobvanderlinden/nixpkgs/commit/06fa176a1bab3ca1908188649fb3bd117b42c2f8 | 10:12:17 |
bobvanderlinden | Oh sorry, this commit is more relevant: https://github.com/bobvanderlinden/nixpkgs/commit/e5ad5b33604e9cb7bf2c37df179518140db7e430 | 10:16:00 |