!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.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
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Janne Heß: Mainly because it doesn't matter, unlike in actual NixOS 20:16:38
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgBefore I had a lot of things working, it was way easier to just have /bin rather than having to go spelunking through /nix20:18:01
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgwhen something gets wildly borked it's nice to have there20:18:15
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.dehmm, does the test work for you?20:18:16
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgyes20:18:20
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deinteresting, so some local modification must be breaking it…20:18:32
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgwhat's the breakage?20:18:41
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de [FAILED] Failed to start Make File System on /dev/vda. 20:18:56
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgUh oh20:19:17
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deummmm interesting20:19:33
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.dethe modification that broke it was my Environment= stuff20:19:41
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgSystemd needs to find mke2fs on PATH20:20:20
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgDoes setting Environment= override PATH even if you don't use it to set PATH?20:22:04
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgEr, no, emergency.service uses it to set HOME=/root, and that doesn't break PATH in my emergency shell20:22:27
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de ah yeah for some reason it sets PATH=:. I'll take a look at this later because it turns out the argument passing doesn't work :/ 20:24:33

Show newer messages


Back to Room ListRoom Version: 6