!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
30 Apr 2023
@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.org@arianvp:matrix.org ElvishJerricco: could you open a nixpkgs issue about systemd-repart in initrd being borked and assign it to me? 20:59:48
@arianvp:matrix.org@arianvp:matrix.orgI can make some time tomorrow to fix it21:00:00
@arianvp:matrix.org@arianvp:matrix.orgthough 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.org@arianvp:matrix.org 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
@arianvp:matrix.org@arianvp:matrix.org I think for us that'd mean run before root but after nix.mount 21:03:52
@arianvp:matrix.org@arianvp:matrix.org I think that makes sense for the nixos case if /nix is on separate partition 21:05:10
@arianvp:matrix.org@arianvp:matrix.orgbut not sure....21:05:19
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Arian: Yea I was looking into this last night, and there isn't really a clean answer without patching systemd or something. It really expects at least an OS to be installed on a disk, but in NixOS we go even further and don't even have an OS on a disk. The other thing is that we actually can't just use /sysroot; we would have to wait for nixos-activation.service to run so that /etc is set up 21:19:39
@arianvp:matrix.org@arianvp:matrix.org I think doing systemd-repart --empty=allow /dev/vda is the way to go 21:20:17
@arianvp:matrix.org@arianvp:matrix.orgfor nixos21:20:24
@arianvp:matrix.org@arianvp:matrix.orgthat will re-partition the disk even if it doesnt have a GPT partition table21:20:42
@arianvp:matrix.org@arianvp:matrix.organd run that in initrd21:20:59
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Yea, I'm really starting to think that the only sane option is to put the config files in the initrd and do systemd-repart --empty=allow ${config.fileSystems."/".device} except that isn't quite right because we have to point at the root disk, not the root partition 21:22:27
@elvishjerricco:matrix.org@elvishjerricco:matrix.org Which makes me think we actually need a boot.initrd.systemd.repart.device option 21:23:21
@arianvp:matrix.org@arianvp:matrix.orgboot.initrd.systemd/repart.device21:23:25
@arianvp:matrix.org@arianvp:matrix.orgyeh21:23:29
@arianvp:matrix.org@arianvp:matrix.orgexactly21:23:30
@elvishjerricco:matrix.org@elvishjerricco:matrix.org But that's super lame because we don't need to do that for boot.initrd.growPartition, which I was hoping to implement in systemd-initrd via repart 21:23:58
@elvishjerricco:matrix.org@elvishjerricco:matrix.org * But that's super lame because we don't need to do that for boot.growPartition, which I was hoping to implement in systemd-initrd via repart 21:24:14
@elvishjerricco:matrix.org@elvishjerricco:matrix.org but growPartition just assumes you've set fileSystems."/".device to something with a number at the end that can be dropped to get to the disk 21:24:49
@arianvp:matrix.org@arianvp:matrix.orgwell we can still implement that as a compatibiliy hack?21:25:31

Show newer messages


Back to Room ListRoom Version: 6