| 22 May 2023 |
Arian | shouldn't we be able to build an image without booting a VM? | 13:40:17 |
@elvishjerricco:matrix.org | Don't we just run nixos-install in a VM to make an image or something? | 13:40:30 |
K900 | It's surprisingly difficult, actually | 13:40:36 |
K900 | Turns out it's pretty hard to create a filesystem that is only implemented in the kernel without the kernel | 13:41:11 |
@elvishjerricco:matrix.org | but also we definitely make too many images now | 13:41:38 |
@elvishjerricco:matrix.org | there's a lot of nixos tests that previously didn't need an image that do now | 13:41:48 |
@elvishjerricco:matrix.org | because of some much-needed changes to qemu-vm.nix | 13:41:59 |
Arian | I'm pretty sure all the filesystems the kernel implements are now exposed as userspace libraries | 13:44:08 |
K900 | They are absolutely not | 13:44:19 |
@elvishjerricco:matrix.org | yea wut | 13:44:24 |
Arian | :( | 13:44:25 |
Arian | damit | 13:44:29 |
K900 | Unless you mean, like, LKL, which we already are using | 13:44:39 |
K900 | (and it's still very slow) | 13:44:44 |
@elvishjerricco:matrix.org | how are we using that? | 13:45:05 |
K900 | In make-disk-image | 13:45:43 |
Arian | and is there not something like a mount namespace? where we can mount a disk image as non-root? | 13:46:38 |
Arian | that would also work no? | 13:46:49 |
K900 | There is, but that would be wildly impure | 13:47:02 |
@elvishjerricco:matrix.org | How is that impure? It could be done in the sandbox by the derivation, no outside help needed | 13:47:50 |
K900 | It'll depend heavily on the kernel support for those filesystems | 13:48:02 |
@elvishjerricco:matrix.org | oh i see | 13:48:07 |
@elvishjerricco:matrix.org | yea | 13:48:08 |
Arian | could make the kernel config part of system-features :hmm: | 13:48:31 |
@elvishjerricco:matrix.org | pls no :P | 13:48:38 |
Arian | but idk if I like that | 13:48:39 |
Arian | maybe the trick is to just boot a way more minimal VM than we're currently doing | 13:49:09 |
@elvishjerricco:matrix.org | but yea we should definitely work to remove the unnecessary disk images from the nixos tests that don't need them | 13:49:14 |
Arian | and just do the filesystem bits | 13:49:18 |
@elvishjerricco:matrix.org | they take a long time to build and put a lot of strain on storage | 13:49:29 |