!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

86 Members
systemd in NixOs's stage 1, replacing the current bash tooling https://github.com/NixOS/nixpkgs/projects/5128 Servers

Load older messages


SenderMessageTime
22 May 2023
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgbecause of some much-needed changes to qemu-vm.nix13:41:59
@arianvp:matrix.orgArianI'm pretty sure all the filesystems the kernel implements are now exposed as userspace libraries13:44:08
@k900:0upti.meK900They are absolutely not13:44:19
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgyea wut13:44:24
@arianvp:matrix.orgArian:(13:44:25
@arianvp:matrix.orgAriandamit13:44:29
@k900:0upti.meK900Unless you mean, like, LKL, which we already are using13:44:39
@k900:0upti.meK900(and it's still very slow)13:44:44
@elvishjerricco:matrix.org@elvishjerricco:matrix.orghow are we using that?13:45:05
@k900:0upti.meK900In make-disk-image13:45:43
@arianvp:matrix.orgArianand is there not something like a mount namespace? where we can mount a disk image as non-root?13:46:38
@arianvp:matrix.orgArianthat would also work no?13:46:49
@k900:0upti.meK900There is, but that would be wildly impure13:47:02
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgHow is that impure? It could be done in the sandbox by the derivation, no outside help needed13:47:50
@k900:0upti.meK900It'll depend heavily on the kernel support for those filesystems13:48:02
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgoh i see13:48:07
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgyea13:48:08
@arianvp:matrix.orgArian could make the kernel config part of system-features :hmm: 13:48:31
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgpls no :P13:48:38
@arianvp:matrix.orgArianbut idk if I like that13:48:39
@arianvp:matrix.orgArianmaybe the trick is to just boot a way more minimal VM than we're currently doing13:49:09
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgbut yea we should definitely work to remove the unnecessary disk images from the nixos tests that don't need them13:49:14
@arianvp:matrix.orgArian and just do the filesystem bits 13:49:18
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgthey take a long time to build and put a lot of strain on storage13:49:29
@arianvp:matrix.orgArian(or maybe we do that already; idk)13:49:31
@nikstur:matrix.org@nikstur:matrix.org
In reply to @arianvp:matrix.org
shouldn't we be able to build an image without booting a VM?
Afaik all the file systems that systemd-repart supports ("ext4", "btrfs", "xfs", "vfat", "erofs", "squashfs") can be created without a VM. In fact with this commit https://github.com/systemd/systemd/commit/1eb86ddde4f36165a99732b53cc97cef1acc3aa7 we can build disk images with systemd-repart in the nix build sandbox. For all but vfat and xfs the, mkfs tools take a directory and turn it into a fs. To build a vfat fs you need to copy the files manually (with mtools) into the fs image after you have created it (still in user space though) and for xfs there is a weird protofile which you can also create outside of a VM. I have no idea about the other filesystems NixOS supports.
16:14:07
@nikstur:matrix.org@nikstur:matrix.org And then there a fun things like bootctl install which checks that the ESP is a vfat fs, so afaik you cant call it in a chroot. 16:14:37
@elvishjerricco:matrix.org@elvishjerricco:matrix.org How does repart's CopyFiles thing even work? 16:16:08
@nikstur:matrix.org@nikstur:matrix.org Ahh this is new, there is a variable for bootctl which disables the check $SYSTEMD_RELAX_ESP_CHECKS=1 16:16:29
@nikstur:matrix.org@nikstur:matrix.org
In reply to @elvishjerricco:matrix.org
How does repart's CopyFiles thing even work?
It creates a root directory for most filesystems and then calls mkfs pointing at the root directory.
16:17:11

Show newer messages


Back to Room ListRoom Version: 6