!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

Load older messages


SenderMessageTime
24 Mar 2022
@arianvp:matrix.org@arianvp:matrix.orgJanne you're going to the sprint right?17:25:09
@arianvp:matrix.org@arianvp:matrix.orgI suppose we can spend the sprint on follow-up PRs :))17:25:23
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Janne Heß: Moved? 17:25:59
@flokli:matrix.orgflokliI'll be sprinting up mountains in Mallorca this time, sorry :-P17:26:12
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgsystemd just mounts /proc, /dev, etc. automatically when it starts17:26:17
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgAnd the other mounts are just a consequence of switch-root17:26:28
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @arianvp:matrix.org
Janne you're going to the sprint right?
Yes!
17:27:53
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @arianvp:matrix.org
I suppose we can spend the sprint on follow-up PRs :))
I'd love to have most of the basics covered so we can just implement stuff like different storage systems, networking,...
17:28:25
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @elvishjerricco:matrix.org
systemd just mounts /proc, /dev, etc. automatically when it starts
Hm. So it mounts a new tmpfs over /run?
17:29:07
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgHmm I seem to recall it moving /run correctly now that you mention it, but it's been a while since I played with that17:29:41
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgmaybe it does move them with switch-root or something? Not sure17:29:59
@flokli:matrix.orgfloklihttps://www.freedesktop.org/software/systemd/man/bootup.html17:30:46
@elvishjerricco:matrix.org@elvishjerricco:matrix.org The service initrd-parse-etc.service scans /sysroot/etc/fstab for a possible /usr/ mount point and additional entries marked with the x-initrd.mount option. All entries found are mounted below /sysroot, and initrd-fs.target is reached 17:33:45
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgAh, we should probably use that17:33:48
@flokli:matrix.orgfloklihttps://systemd.io/INITRD_INTERFACE/ also mentions also pivoting back to initrd on shutdown, to clean up storage stuff necessary for /17:34:10
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Then we'd only need to have / and /etc in initrd, and the rest can be in the real rootfs's /etc/fstab with x-initrd.mount 17:34:37
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgThe shutdown pivoting stuff is a whole other thing, and somewhat annoying to implement17:35:02
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @flokli:matrix.org
https://systemd.io/INITRD_INTERFACE/ also mentions also pivoting back to initrd on shutdown, to clean up storage stuff necessary for /
I wanted to test that later 👀
17:35:08
@elvishjerricco:matrix.org@elvishjerricco:matrix.org We definitely should; e.g. we could properly export the root zfs pool that way instead of the dumb hack we do now 17:35:24
@flokli:matrix.orgflokli ElvishJerricco: Maybe we can address some of the minor style nits in the open PR, put enabling it behind a fat lib.warn that this is all still experimental, and merge it? 17:35:44
@flokli:matrix.orgflokliI assume some of the followup stuff can be done in parallel17:35:53
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgYea17:35:53
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgthat's what I was hoping for17:36:03
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgJust haven't gotten around to the remaining nits yet17:36:20
@flokli:matrix.orgflokliOkay :-)17:36:25
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgY'all are free to take a stab at those if you want :)17:36:29
@flokli:matrix.orgflokliI don't want to race with you on it17:36:40
@flokli:matrix.orgflokliI might eat some dinner soon, but will check back later17:36:45
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI don't have any unpunished progress, and I'm not going to be able to work on this stuff today at all most likely17:36:58
@elvishjerricco:matrix.org@elvishjerricco:matrix.org * I don't have any unpushed progress, and I'm not going to be able to work on this stuff today at all most likely17:37:03

Show newer messages


Back to Room ListRoom Version: 6