!PSmBFWNKoXmlQBzUQf:helsinki-systems.de

Stage 1 systemd

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

Load older messages


SenderMessageTime
15 Jun 2023
@elvishjerricco:matrix.org@elvishjerricco:matrix.org
In reply to @k900:conduit.0upti.me
Time to RIIR Plymouth?
I do legitimately wonder how hard that would be. Like it'd be cool to scope out just how much stuff plymouth actually does. I'm sure samueldr has actually done most of this for his mobile NixOS stage 1 boot splash / osk
14:38:59
@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.org@elvishjerricco:matrix.orgOh that's... interesting16:13:34
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgYea 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.org@elvishjerricco:matrix.org 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.org@elvishjerricco:matrix.orgI mean failure is the only useful outcome16:26:31
@uep:matrix.org@uep:matrix.orgbut yes, it does fit there16:26:33
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgSo the message just needs to be helpful16:26:37
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI 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.org@elvishjerricco:matrix.orgSure it can16:27:12
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgOh16:27:16
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgWait I see what you mean16:27:20
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgIt 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.org@elvishjerricco:matrix.orgIt'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.org@elvishjerricco:matrix.orgSo 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

Show newer messages


Back to Room ListRoom Version: 6