!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/5127 Servers

Load older messages


SenderMessageTime
20 Mar 2022
@elvishjerricco:matrix.org@elvishjerricco:matrix.org So when you try to make the unit yourself, generateUnits will be like "Oh, that unit doesn't exist at all. I'll just make a regular unit then, not an override" 17:42:22
@elvishjerricco:matrix.org@elvishjerricco:matrix.organd then that regular unit will get shadowed by the /run unit from the generator17:42:42
@bobvanderlinden_:matrix.orgbobvanderlindenhmm, right17:42:49
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgThis is why I didn't immediately fix the issue myself :P I wasn't sure of a clean solution17:43:32
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgBut I'd be very happy to include it in this PR, as being able to boot one of these VMs, or have a NixOS test, is pretty core functionality IMO17:43:59
@bobvanderlinden_:matrix.orgbobvanderlinden it doesn't really need to override systemd-makefs@.service if the needed binaries are just here in sytemd's path 'globally'? 17:44:57
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI suppose that's true.17:45:16
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgWe could like... add /bin to every unit's PATH somehow17:45:28
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgnot sure how to make that work for these generated /run units17:45:36
@bobvanderlinden_:matrix.orgbobvanderlindenin systemd.conf you can define the PATH17:45:58
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgOhh17:46:02
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgthat's good17:46:05
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgProbably very much worth it17:46:12
@bobvanderlinden_:matrix.orgbobvanderlindenI was also thinking we could use a proper ini-settings option-type for those *.conf files, instead of the types.lines approach17:46:52
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI'd say lets just stick to the same API as stage 217:47:26
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI think that consistency is probably worthwhile17:47:45
@bobvanderlinden_:matrix.orgbobvanderlindenbetter for now indeed17:47:56
@bobvanderlinden_:matrix.orgbobvanderlindento get the PR merged πŸ˜… can always experiment with these things afterwards17:48:21
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI have to run for now. Let me know if the PATH thing and makefs/growfs work. Or if you're not messing with it right now I'll probably give it a go in an hour or two17:49:10
@bobvanderlinden_:matrix.orgbobvanderlindenmeh, i need to go too for now. This is what I got atm: https://github.com/bobvanderlinden/nixpkgs/commit/49f374ed7cf234a99ecab41ab2f0b5359b088ae818:06:00
@bobvanderlinden_:matrix.orgbobvanderlinden

I don't see it doing any makefs things yet:

machine # [  OK  ] Found device /dev/vda.
machine # [    2.398149] systemd-udevd[85]: Using default interface naming scheme 'v249'.
machine #          Mounting /sysroot...
machine # [    2.735262] EXT4-fs (vda): VFS: Can't find ext4 filesystem
machine # [    2.514791] mount[110]: mount: /sysroot: wrong fs type, bad option, bad superblock on /dev/vda, missing codepage or helper program, or other error.
machine # sysroot.mount: Mount process exited, code=exited, status=32/n/a
machine # sysroot.mount: Failed with result 'exit-code'.
machine # [FAILED] Failed to mount /sysroot.
18:06:20
@bobvanderlinden_:matrix.orgbobvanderlindenaah, maybe those generator files aren't there yet in the right place on the initramfs: /nix/store/mf3c2s2zfwn7i5j9ibca1md7gnhmxy91-systemd-minimal-249.7/lib/systemd/system-generators/systemd-fstab-generator -> /etc/systemd/system-generators/18:08:04
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgSystemd does actually implicitly know where its included generators are. That's why the fstab generator works18:13:16
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgBut yes, tangentially, we should create the proper generators directory18:13:34
@bobvanderlinden_:matrix.orgbobvanderlindenAh, well I couldn't see that it ran the generator from the logs. Not sure what was up. Not looking at it atm (need some food πŸ˜…)18:17:28
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgOk cool, I have makefs and growfs working19:33:23
@elvishjerricco:matrix.org@elvishjerricco:matrix.org but yea like I thought, I have the IgnoreOnIsolate problem 19:33:38
@elvishjerricco:matrix.org@elvishjerricco:matrix.org bobvanderlinden: Janne Heß: I think I've fixed it now. Check out the latest two commits on the PR 20:04:11
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgAnd now I've added a bare minimum test case. Works just fine20:12:11
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de one thing I was wondering: why always DefaultEnvironment=PATH=/bin:/sbin? Wouldn't it be cleaner to reference /nix directly? 20:14:39

Show newer messages


Back to Room ListRoom Version: 6