!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

Load older messages


SenderMessageTime
15 Jun 2023
@uep:matrix.org@uep:matrix.org

Hm. Helping someone with an install, they did:

fileSystems."/boot" =
    {
      device = "/dev/disk/by-uuid/7CBF-1A69";
      fsType = "zfs";
    };

(wrong fstype)

16:12:37
@uep:matrix.org@uep:matrix.orgbut the result is that it inferred a pool name of ""16:12:54
@uep:matrix.org@uep:matrix.organd added a job to import that pool, which is of course failing.16:13:13
@uep:matrix.org@uep:matrix.orgseems like there's room for an assertion that the pool name isn't blank16:13:28
@elvishjerricco:matrix.orgElvishJerriccoOh that's... interesting16:13:34
@elvishjerricco:matrix.orgElvishJerriccoYea for sure16:13:37
@uep:matrix.org@uep:matrix.org

somewhere in here:


  datasetToPool = x: elemAt (splitString "/" x) 0;

  fsToPool = fs: datasetToPool fs.device;

  zfsFilesystems = filter (x: x.fsType == "zfs") config.system.build.fileSystems;

  allPools = unique ((map fsToPool zfsFilesystems) ++ cfgZfs.extraPools);

  rootPools = unique (map fsToPool (filter fsNeededForBoot zfsFilesystems));

16:22:40
@uep:matrix.org@uep:matrix.orgor, misplaced in the thing that creates the import service, I guess16:23:00
@uep:matrix.org@uep:matrix.org * or, misplaced in the thing that creates the import service, just below, I guess16:23:08
@elvishjerricco:matrix.orgElvishJerricco I'd just add a NixOS style assertion like assertions = [{ assertion = !(elem "" allPools); message = "pls no"; }] 16:24:53
@uep:matrix.org@uep:matrix.orgwell, that will fail but not helpfully?16:26:15
@elvishjerricco:matrix.orgElvishJerriccoI mean failure is the only useful outcome16:26:31
@uep:matrix.org@uep:matrix.orgbut yes, it does fit there16:26:33
@elvishjerricco:matrix.orgElvishJerriccoSo the message just needs to be helpful16:26:37
@elvishjerricco:matrix.orgElvishJerriccoI just didn't bother to write one because I'm on my phone :P16:26:50
@uep:matrix.org@uep:matrix.orgyeah but it cant point to the dataset 16:27:05
@elvishjerricco:matrix.orgElvishJerriccoSure it can16:27:12
@elvishjerricco:matrix.orgElvishJerriccoOh16:27:16
@elvishjerricco:matrix.orgElvishJerriccoWait I see what you mean16:27:20
@elvishjerricco:matrix.orgElvishJerriccoIt can name the mountpoint though16:27:28
@uep:matrix.org@uep:matrix.orgyeah, all it can point to is the blank at that point16:27:32
@elvishjerricco:matrix.orgElvishJerriccoIt's not uncommon to have more expensive, redundant computations in the message field, since it's lazily evaluated. Sometimes people throw in calculations that would error if the assertion isn't false16:28:23
@uep:matrix.org@uep:matrix.orgfair16:28:55
@elvishjerricco:matrix.orgElvishJerriccoSo the message can calculate which mountpoints are busted16:28:57
@uep:matrix.org@uep:matrix.orgi'll look into this later, when it's not 02.3016:29:33
@uep:matrix.org@uep:matrix.orgit's probably enough to just have "must not start with /" in the message16:31:24
@lily:lily.flowers@lily:lily.flowers
In reply to @elvishjerricco:matrix.org
lol yea it'd probably be helpful for testing it
https://gist.github.com/lilyinstarlight/0597b656045ed7042fd200d0f0e9879f
16:58:59
@k900:conduit.0upti.meK900 (deprecated)Sadness17:18:35
@k900:conduit.0upti.meK900 (deprecated)I still can't get amdgpu to not modeset on my desktop17:18:45
@k900:conduit.0upti.meK900 (deprecated)It's triple monitors though17:18:49

Show newer messages


Back to Room ListRoom Version: 6