!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

Load older messages


SenderMessageTime
28 Jan 2023
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgthey may just not care because either they have the fsck unit or they have swap on a block device and don't notice the scary23:33:57
@lily:lily.flowers@lily:lily.flowersOh you know what. Dracut actually does create their own synchronization points. So I bet it's working in dracut by chance right now23:34:28
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgExactly23:34:35
@lily:lily.flowers@lily:lily.flowersLet me go check mkinitcpio to see if they're doing anything23:34:48
@elvishjerricco:matrix.org@elvishjerricco:matrix.org I think it's really really stupid that systemd doesn't add After=local-fs-pre.target in initrd 23:35:07
@elvishjerricco:matrix.org@elvishjerricco:matrix.org that's the sync point that systemd-hibernate-resume@.service relies on 23:35:22
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgThe docs literally say that's why it works23:35:37
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Search for hibernate in man bootup 23:36:02
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgthe docs are just wrong :P23:36:10
@lily:lily.flowers@lily:lily.flowersmkinitcpio uses their own resume hook too23:37:17
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgis that what dracut does? Just all custom hibernate resume stuff?23:37:44
@lily:lily.flowers@lily:lily.flowersYep. And I just checked initramfs-tools too23:37:59
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgalso, make sure you're looking at the systemd variations on all these things23:37:59
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgboth mkinitcpio and dracut have old scripted mode and systemd mode23:38:08
@elvishjerricco:matrix.org@elvishjerricco:matrix.org(that's one reason I don't look to them for examples; it's really hard to disentangle their scripted implementations from their systemd implementations)23:38:55
@lily:lily.flowers@lily:lily.flowers Okay so dracut does use systemd-hibernate-resume@.service but as mentioned they have their own sync points 23:39:09
@lily:lily.flowers@lily:lily.flowersI think mkinitcpio is doing their own custom resume23:39:30
@elvishjerricco:matrix.org@elvishjerricco:matrix.org
In reply to @lily:lily.flowers
Okay so dracut does use systemd-hibernate-resume@.service but as mentioned they have their own sync points
That's not surprising. Dracut is like the de facto implementation of systemd initrd
23:39:48
@lily:lily.flowers@lily:lily.flowers
In reply to @elvishjerricco:matrix.org
(that's one reason I don't look to them for examples; it's really hard to disentangle their scripted implementations from their systemd implementations)
(mkinitcpio also sketches me the heck out and dracut is too complicated/sometimes working by accident like in this case)
23:41:32
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgyuuup23:41:54
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgagreed 100%23:41:59
@linus:schreibt.jetzt@linus:schreibt.jetztwe should make the nixos initramfs builder build initramfses for other distros too23:42:27
@linus:schreibt.jetzt@linus:schreibt.jetztthen have all the other distros use that23:42:36
@linus:schreibt.jetzt@linus:schreibt.jetzt:D23:42:37
@lily:lily.flowers@lily:lily.flowersHonestly, it would definitely improve the situation for some initramfs's23:42:53
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgMy earliest attempts at systemd initrd included using mkinitcpio and dracut and it was Not Very Fun (TM)23:42:55
@lily:lily.flowers@lily:lily.flowers
In reply to @elvishjerricco:matrix.org
My earliest attempts at systemd initrd included using mkinitcpio and dracut and it was Not Very Fun (TM)
Yeah what we've got going (once all of the unit ordering issues are ironed out...) seems much better and easier to follow. Also probably faster since it doesn't have the extra stuff that dracut has
23:43:38
@lily:lily.flowers@lily:lily.flowers(As the person who maintains the dracut derivation in nixpkgs, I can confirm we should 100% not use it to generate our initramfs unless we want to have a terrible time)23:44:37
@lily:lily.flowers@lily:lily.flowers (I only wanted it for lsinitrd anyways) 23:44:49
@linus:schreibt.jetzt@linus:schreibt.jetztI remember trying to follow what dracut did for... something, I don't even remember what23:45:10

Show newer messages


Back to Room ListRoom Version: 6