!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

582 Members
NixOS ❤️ systemd161 Servers

Load older messages


SenderMessageTime
23 Jan 2025
@matthewcroughan:defenestrate.itmatthewcroughanYou can see that it does attempt to run the copytoram.service, which means its before/after must have been satisifed?02:28:07
@jade_:matrix.orgjade_
In reply to @matthewcroughan:defenestrate.it
asahi doesn't have serial, and this isn't a qr code, annoyingly
you'd have to get another Mac or a funny adaptor but if you don't have one yeah.....
02:28:40
@matthewcroughan:defenestrate.itmatthewcroughan same for the Shiftphone 8, it has this "USB Cereal" thing which costs a bunch on crowdsupply, and has long lead times 02:30:10
@matthewcroughan:defenestrate.itmatthewcroughan I think it's a race condition ElvishJerricco 02:31:07
@matthewcroughan:defenestrate.itmatthewcroughanIf you look at the logs, it starts copytoram.service, then almost immediately tries to mount /sysroot/nix/store02:31:34
@matthewcroughan:defenestrate.itmatthewcroughanit seems suspiciously fast 02:31:54
@elvishjerricco:matrix.org@elvishjerricco:matrix.org oh you need serviceConfig.Type = "oneshot"; on your service 02:32:10
@matthewcroughan:defenestrate.itmatthewcroughan🧠02:32:17
@matthewcroughan:defenestrate.itmatthewcroughanI don't get why02:32:33
@matthewcroughan:defenestrate.itmatthewcroughanwhat is its default type?02:32:37
@matthewcroughan:defenestrate.itmatthewcroughanhow would I use the manual to figure out its default type btw?02:32:46
@matthewcroughan:defenestrate.itmatthewcroughanare initrd services different than full system services02:33:20
@matthewcroughan:defenestrate.itmatthewcroughan * are initrd services different than full system services?02:33:21
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgservices are by default expected to be considered "started" as soon as their main process is forked from systemd. Because in a normal system, services are considered background tasks by default. In initrd though, they're usually oneshot jobs where they're not done until the process is done02:33:33
@elvishjerricco:matrix.org@elvishjerricco:matrix.org man systemd.service 02:33:50
@elvishjerricco:matrix.org@elvishjerricco:matrix.org no, they're just more often Type=oneshot 02:34:02
@matthewcroughan:defenestrate.itmatthewcroughanAh so it's literally the same 02:34:03
@elvishjerricco:matrix.org@elvishjerricco:matrix.org matthewcroughan: (btw: https://github.com/NixOS/nixpkgs/pull/375975) 02:34:38
@matthewcroughan:defenestrate.itmatthewcroughanoh wow that doesn't add the overlay02:35:48
@matthewcroughan:defenestrate.itmatthewcroughanit just wires it through 02:35:50
@matthewcroughan:defenestrate.itmatthewcroughannice02:35:55
@matthewcroughan:defenestrate.itmatthewcroughan Now copytoram.service fails 02:39:04
@matthewcroughan:defenestrate.itmatthewcroughan
    fileSystems."/nix/store" = {
      device = "/sysroot/tmp/store.squashfs";
      fsType = "squashfs";
      options = [ "loop" ];
    };

    boot.initrd.systemd.services.copytoram = {
      before = [ "sysroot-nix-store.mount" ];
      after = [ "dev-disk-by\\x2dpartlabel-nix\\x2dstore.device" ];
      requires = [ "dev-disk-by\\x2dpartlabel-nix\\x2dstore.device" ];
      serviceConfig.ExecStart = "${pkgs.coreutils}/bin/dd if=/dev/disk/by-partlabel/nix-store of=/sysroot/tmp/store.squashfs";
      serviceConfig.Type = "oneshot";
      requiredBy = [ "initrd.target" ];
    };
02:39:14
@matthewcroughan:defenestrate.itmatthewcroughanfor a recap02:39:16
@matthewcroughan:defenestrate.itmatthewcroughanis there a way to make it more verbose, so I don't need a keyboard to see what the stdout of the ExecStart was?02:39:41
@matthewcroughan:defenestrate.itmatthewcroughanI think I've had this before.. sec 02:39:47
@elvishjerricco:matrix.org@elvishjerricco:matrix.org I guess you also need unitConfig.RequiresMountsFor = "/sysroot/tmp"; now that I think of it 02:39:50
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgI think you can point the journal output at the console02:40:22
@matthewcroughan:defenestrate.itmatthewcroughanStandardOutput=/dev/console or somethign?02:40:52
@matthewcroughan:defenestrate.itmatthewcroughan * StandardOutput=/dev/console or something02:40:55

Show newer messages


Back to Room ListRoom Version: 6