!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

Load older messages


SenderMessageTime
28 Jan 2023
@lily:lily.flowers@lily:lily.flowers
In reply to @elvishjerricco:matrix.org
let me see what happens if I force a proper ordering...
It would be interesting to know if your branch for that fixes it. Because then they've been very lucky so far that it's failed to resume and they haven't lost data
22:40:46
@elvishjerricco:matrix.org@elvishjerricco:matrix.org My fsck PR does fix the ordering for file systems that systemd generates fsck units for, but only by happenstance. systemd-hibernate-resume@.service comes Before=local-fs-pre.target, but systemd is dumb and doesn't add After=local-fs-pre.target to initrd file systems. However, it does add it to fsck units 22:42:04
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgwhich is the only reason it works right upstream22:42:11
@lily:lily.flowers@lily:lily.flowers
In reply to @elvishjerricco:matrix.org
which is the only reason it works right upstream
Oh dear.... So things are only working by accident upstream right now?
22:42:49
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgessentially22:43:05
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI have a patch for that22:43:11
@lily:lily.flowers@lily:lily.flowersThat's horrifying22:43:12
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI have like three or four systemd patches that I need to properly evaluate and open a PR with22:43:36
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI need to go eat dinner before I try fixing the ordering thing22:44:46
@lily:lily.flowers@lily:lily.flowers
In reply to @elvishjerricco:matrix.org
I need to go eat dinner before I try fixing the ordering thing
Okay, I may take a closer look tomorrow too, depending on what you find out (not sure I'll have time/energy/motivation to debug deep linux arcana tonight)
22:46:26
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Lily Foster: Yea, adding proper ordering fixes it :/ 23:12:24
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgooohhh I see why it's an issue with swap files and not block devices23:27:15
@elvishjerricco:matrix.org@elvishjerricco:matrix.org systemd-hibernate-resume@.service and sysroot.mount will compete for access to the same block device if swap is on a swap file 23:27:55
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgif swap is on another device you'll just get the silent scaries :P23:28:14
@elvishjerricco:matrix.org@elvishjerricco:matrix.orglet me see if the same happens with ext423:28:27
@lily:lily.flowers@lily:lily.flowers
In reply to @elvishjerricco:matrix.org
systemd-hibernate-resume@.service and sysroot.mount will compete for access to the same block device if swap is on a swap file
Oh how nice...
23:29:40
@lily:lily.flowers@lily:lily.flowersI saw there was a systemd v253 rc with your changes with it. Once that's released and in nixpkgs, that would unblock your stage1 fsck PR, right?23:30:18
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgYep, same exact thing with a swap file on ext423:30:33
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Lily Foster: Yea, that would unblock the fsck pr 23:30:43
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgthough I don't think that would help btrfs23:31:04
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgsince I think that's one of the file systems we don't fsck23:31:10
@lily:lily.flowers@lily:lily.flowersOh yeah good point23:31:18
@lily:lily.flowers@lily:lily.flowers(also btrfs recommends to not try anything resembling fsck on it)23:31:27
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgright23:31:50
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgso we need...23:32:10
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgThis: https://github.com/NixOS/nixpkgs/commit/d97a2f4d5eecfe74b619179144b575c8b9f7cd1923:32:28
@lily:lily.flowers@lily:lily.flowersHow is this not broken in other OS's using like dracut and such?23:32:49
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgdracut may have its own special sauce to fix it23:33:13
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI don't know23:33:17
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI try not to look at it unless I have to :P23:33:22

Show newer messages


Back to Room ListRoom Version: 6