!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

600 Members
NixOS ❤️ systemd168 Servers

Load older messages


SenderMessageTime
22 Mar 2025
@arianvp:matrix.orgArianIs Dev/vda3 mounted at this point?09:27:35
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgno09:27:41
@arianvp:matrix.orgArianMaybe you only get these events for unmounted partitions09:27:59
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgwell that would still be the case in stage 209:28:25
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgfor any non-root partitions09:28:28
@arianvp:matrix.orgArianThat would explain why it doesn mess with the root fs. But it would indeed screw things up for anything else in fstab09:28:34
@elvishjerricco:matrix.org@elvishjerricco:matrix.org I think I'm going to take my eyes off this problem for a bit and get some sleep. Arian Do you have any interest in taking a glance at my test config in the meantime? 09:30:29
@elvishjerricco:matrix.org@elvishjerricco:matrix.org(it's using my fancy "installer-small" nixos test setup that makes installer tests way way more efficient)09:30:58
@arianvp:matrix.orgArianYah send a link. I might have a look later09:32:01
@arianvp:matrix.orgArian Though I'm gonna do some touristic stuff with @flokli:matrix.org first 09:32:13
@elvishjerricco:matrix.org@elvishjerricco:matrix.org

Arian: https://github.com/ElvishJerricco/nixpkgs/commits/installer-small/

The last commit probably breaks all the other ones so if you're interested in the installer-small stuff check out the one before it. But the last one contains the repart test case

09:37:23
@elvishjerricco:matrix.org@elvishjerricco:matrix.org *

Arian: https://github.com/ElvishJerricco/nixpkgs/commits/installer-small/

The last commit probably breaks all the other ones so if you're interested in the installer-small stuff check out the ones before it. But the last one contains the repart test case

09:37:34
23 Mar 2025
@srestegosaurio:tchncs.de@srestegosaurio:tchncs.deIf I assign a non-existent slice to a service, will it be created with default values or return an error?02:42:45
@arianvp:matrix.orgArianI dont remember 09:22:13
@arianvp:matrix.orgArianTry it out? 09:22:20
@antifuchs:asf.computerantifuchssoooo how long is scripted initrd going to be a thing? I have a truly annoying (semi-guaranteed to be racy) nixos test for scripted, and would love to get rid of it someday23:39:24
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI have not made as much time as I usually do for nixos stuff since 24.11, so systemd by default in 25.05 is unlikely, again :(23:44:41
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgplus I've been sidetracked by a couple other nixos things like the ISO23:45:08
@antifuchs:asf.computerantifuchsunderstandable yet sad23:45:13
@antifuchs:asf.computerantifuchsno worries, I'm gonna figure this out one way or the other23:45:24
@antifuchs:asf.computerantifuchs

can you think of a good way to halt the boot process in scripted initrd until a condition is met? I have been trying

              boot.initrd.preLVMCommands = ''
                while ! [ -f /tmp/fnord ] ; do
                  sleep 1
                done
              '';

and it sure seems to stop the boot but you don't get output from the machine in case anything goes wrong...

23:46:42
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgyea that's, uh... a good use case for systemd initrd :P23:48:41
@uep:matrix.orguep

random idle musing: what's the right way to express dependencies between services, that says service A needs to be running, but should also be restarted whenever service B starts or stops?

Use case:

  • Service A: smartd, which either doesn't notice new disks arriving, or gets very upsetti when they go offline
  • Service B: something that's going to power on/off and zpool import an external chassis with 36 disks in a backup pool, to be triggered by other conditions
23:50:32
@uep:matrix.orguep *

random idle musing: what's the right way to express dependencies between services, that says service A needs to be running, but should also be restarted whenever service B starts or stops?

Use case:

  • Service A: smartd, which either doesn't notice new disks arriving, or gets very upsetti when they go offline
  • Service B: something that's going to power on/off and zpool import an external chassis with 36 disks in a backup pool, to be triggered by other conditions
23:50:39
@uep:matrix.orguep(B might get split into separate power state and import state units, but that's not really important for this question. I want to restart smartd around the disks either arriving or leaving23:52:17
@uep:matrix.orguep* (B might get split into separate power state and import state units, but that's not really important for this question. I want to restart smartd around the disks either arriving or leaving)23:52:21
@elvishjerricco:matrix.org@elvishjerricco:matrix.org uep: I wonder if that's more of a job for udev 23:54:36
@elvishjerricco:matrix.org@elvishjerricco:matrix.org * uep: I wonder if that's more of a job for udev rules 23:54:49
@uep:matrix.orguepmaybe23:54:51
@uep:matrix.orguepit might also just be better smartd configuration23:55:00

Show newer messages


Back to Room ListRoom Version: 6