!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

579 Members
NixOS ❤️ systemd159 Servers

Load older messages


SenderMessageTime
22 Mar 2025
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgwell, a) yes you can, and b) I don't have mounts anyway. The mount jobs are cancelled before they're started09:16:51
@arianvp:matrix.orgArianRepart should be running before /sysroot is mounted09:16:57
@elvishjerricco:matrix.org@elvishjerricco:matrix.org the device appears, satisfying some dependencies, and then disappears, which causes job cancellations because of BindsTo=dev-foo.device 09:17:42
@elvishjerricco:matrix.org@elvishjerricco:matrix.organd then reappears, but then it's too late and damage is done09:18:07
@arianvp:matrix.orgArianCould it be a kernel bug? 09:18:20
@arianvp:matrix.orgArianWhy is the kernel sending uevents on resize09:18:30
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgis it not normal for a device's partitions to be removed and added from udev's perspective when the device is partscanned?09:19:01
@arianvp:matrix.orgArianWell you just said it's possible to resize a partition that is mounted. In that case it doesn't sound like sane behaviour that the underlying device would disappear and appear no09:19:50
@arianvp:matrix.orgArianThat makes 0 sense to me09:20:04
@arianvp:matrix.orgArianAh yeh we use online resize for cloud images etc. I remember now 09:21:28
@elvishjerricco:matrix.org@elvishjerricco:matrix.org after repart finishes, I see Changed plugged -> dead for each of the partitions in the systemd debug logging, and then immediately after I see Changed dead -> plugged for them 09:23:12
@elvishjerricco:matrix.org@elvishjerricco:matrix.org

vda3: Processing udev action (SEQNUM=1400, ACTION=remove)

then I get a

vda: Processing udev action (SEQNUM=1401, ACTION=change)

And then I get

vda3: Processing udev action (SEQNUM=1404, ACTION=add)

09:23:57
@elvishjerricco:matrix.org@elvishjerricco:matrix.org *
vda3: Processing udev action (SEQNUM=1400, ACTION=remove)

then I get a

vda: Processing udev action (SEQNUM=1401, ACTION=change)

And then I get

vda3: Processing udev action (SEQNUM=1404, ACTION=add)
09:24:15
@elvishjerricco:matrix.org@elvishjerricco:matrix.org I feel like this can't possibly be right, because then imagine what happens with a normal stage 2 repart service. It would repartition, and immediately cancel all mount jobs depending on those partitions, stopping local-fs.target 09:26:43
@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

Show newer messages


Back to Room ListRoom Version: 6