| 28 Jan 2023 |
@lily:lily.flowers | Oh yeah good point | 23:31:18 |
@lily:lily.flowers | (also btrfs recommends to not try anything resembling fsck on it) | 23:31:27 |
@elvishjerricco:matrix.org | right | 23:31:50 |
@elvishjerricco:matrix.org | so we need... | 23:32:10 |
@elvishjerricco:matrix.org | This: https://github.com/NixOS/nixpkgs/commit/d97a2f4d5eecfe74b619179144b575c8b9f7cd19 | 23:32:28 |
@lily:lily.flowers | How is this not broken in other OS's using like dracut and such? | 23:32:49 |
@elvishjerricco:matrix.org | dracut may have its own special sauce to fix it | 23:33:13 |
@elvishjerricco:matrix.org | I don't know | 23:33:17 |
@elvishjerricco:matrix.org | I try not to look at it unless I have to :P | 23:33:22 |
@elvishjerricco:matrix.org | or | 23:33:41 |
@elvishjerricco:matrix.org | they may just not care because either they have the fsck unit or they have swap on a block device and don't notice the scary | 23:33:57 |
@lily:lily.flowers | Oh you know what. Dracut actually does create their own synchronization points. So I bet it's working in dracut by chance right now | 23:34:28 |
@elvishjerricco:matrix.org | Exactly | 23:34:35 |
@lily:lily.flowers | Let me go check mkinitcpio to see if they're doing anything | 23:34:48 |
@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 | that's the sync point that systemd-hibernate-resume@.service relies on | 23:35:22 |
@elvishjerricco:matrix.org | The docs literally say that's why it works | 23:35:37 |
@elvishjerricco:matrix.org | Search for hibernate in man bootup | 23:36:02 |
@elvishjerricco:matrix.org | the docs are just wrong :P | 23:36:10 |
@lily:lily.flowers | mkinitcpio uses their own resume hook too | 23:37:17 |
@elvishjerricco:matrix.org | is that what dracut does? Just all custom hibernate resume stuff? | 23:37:44 |
@lily:lily.flowers | Yep. And I just checked initramfs-tools too | 23:37:59 |
@elvishjerricco:matrix.org | also, make sure you're looking at the systemd variations on all these things | 23:37:59 |
@elvishjerricco:matrix.org | both mkinitcpio and dracut have old scripted mode and systemd mode | 23:38:08 |
@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 | Okay so dracut does use systemd-hibernate-resume@.service but as mentioned they have their own sync points | 23:39:09 |
@lily:lily.flowers | I think mkinitcpio is doing their own custom resume | 23:39:30 |
@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 | 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 | yuuup | 23:41:54 |