!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

Load older messages


SenderMessageTime
29 Apr 2023
@aktaboot:tchncs.de@aktaboot:tchncs.de ElvishJerricco Is there a reason remove_old_entries is called on rebuild and not hooked to garbage collection ? 17:41:16
@aktaboot:tchncs.de@aktaboot:tchncs.de * ElvishJerricco Is there a reason systemd-boot remove_old_entries() is called on rebuild and not hooked to garbage collection ? 17:41:30
@elvishjerricco:matrix.org@elvishjerricco:matrix.org aktaboot: There's no such thing as "hooked to garbage collection" 17:41:48
@aktaboot:tchncs.de@aktaboot:tchncs.degarbage collection is only related to the nix store, but I guessed we could also delete older boot entries and kernel/initrd at garbage collection time as well17:42:52
@aktaboot:tchncs.de@aktaboot:tchncs.deI guess that's the only place where this can be handled differently since it's not tied to the nix-store directly17:44:14
@aktaboot:tchncs.de@aktaboot:tchncs.dethe problem I encountered was that efi partition was full, so I could not rebuild, and therefore I also could not empty the efi17:45:16
@aktaboot:tchncs.de@aktaboot:tchncs.de* the problem I encountered was that efi partition was full, so I could not rebuild, and therefore I also could not empty the efi with nix tooling17:45:22
@aktaboot:tchncs.de@aktaboot:tchncs.de* the problem I encountered was that efi partition was full, so I could not rebuild, and therefore I also could not empty the efi with nix tooling, cleaning the efi manually isn't very user friendly or desirable17:52:48
@elvishjerricco:matrix.org@elvishjerricco:matrix.org systemd-boot-builder.py is supposed to clear old generations before it adds new ones, so running out of space isn't supposed to be a problem if you've garbage collected 17:53:51
@elvishjerricco:matrix.org@elvishjerricco:matrix.org (in actuality it deletes the entire nixos folder in the ESP before recreating it, because of a bug, but the effect is the same) 17:54:53
30 Apr 2023
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de ElvishJerricco: what do you think about a single option that disables timeout behaviour for crypto? I wouldn't want to enable it by default but I think it's not as uncommon to have issues as-is. For example, I reboot my computer and go fetch a coffee while it does it's thing, just to see that it rebooted and timed out into a recovery shell 11:30:54
@oddlama:matrix.orgoddlamaI just ran into this, too. I'd love an option to disable the timeout.13:58:58
@oddlama:matrix.orgoddlama Also not sure if this is related, but sometimes when I am in the middle of entering the password via ssh and systemd-tty-ask-password-agent, the agent seems to be reset and the prompt exits. 14:02:05
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Janne Heß: By default, JobTimeoutSec is set to 0 for crypttab stuff. So there should already be no timeout 20:01:20
@elvishjerricco:matrix.org@elvishjerricco:matrix.org(I believe we do not do this for zfs's import service, so zfs native encryption will timeout; we should change that)20:02:25
@lily:lily.flowers@lily:lily.flowers
In reply to @elvishjerricco:matrix.org
Janne Heß: By default, JobTimeoutSec is set to 0 for crypttab stuff. So there should already be no timeout
There definitely is one. I'll see if I can figure out why in a bit
20:04:25
@lily:lily.flowers@lily:lily.flowers(I do the same reboot computer and go fetch a coffee thing and occasionally come back to it timed out)20:05:04
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @elvishjerricco:matrix.org
Janne Heß: By default, JobTimeoutSec is set to 0 for crypttab stuff. So there should already be no timeout
That's true but then waiting for the decrypted device times out
20:05:12
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de20230430_220529_474826277132580486.jpg
Download 20230430_220529_474826277132580486.jpg
20:05:42
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgHmm ok20:05:44
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgWell there's fstab options for that20:05:54
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deOh there is? I will check once I find the time 20:06:12
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deThanks for the pointer :) 20:06:23
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgHm but that says the device job timed out....20:06:38
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgOh I see20:08:01
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgCryptsetup-generator probably sets the timeout for the physical device to zero, but leaves it default for the mapper device and the FS itself20:08:41
2 May 2023
@arianvp:matrix.orgArian ElvishJerricco: could you open a nixpkgs issue about systemd-repart in initrd being borked and assign it to me? 20:59:48
@arianvp:matrix.orgArianI can make some time tomorrow to fix it21:00:00
@arianvp:matrix.orgArianthough i do think it can be a matter of opinion https://github.com/systemd/systemd/blame/main/units/systemd-repart.service.in#L2521:02:47
@arianvp:matrix.orgArian upstream runs after /sysusr is mounted (which will become /usr after switchroot) so it definitely expects the main software to already be mounted and only add additional partitions for storage not software 21:03:29

Show newer messages


Back to Room ListRoom Version: 6