!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

609 Members
NixOS ❤️ systemd172 Servers

Load older messages


SenderMessageTime
23 Jan 2025
@elvishjerricco:matrix.orgElvishJerricco man systemd.service 02:33:50
@elvishjerricco:matrix.orgElvishJerricco 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.orgElvishJerricco 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.orgElvishJerricco I guess you also need unitConfig.RequiresMountsFor = "/sysroot/tmp"; now that I think of it 02:39:50
@elvishjerricco:matrix.orgElvishJerriccoI 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
@elvishjerricco:matrix.orgElvishJerricco It would just be StandardOutput=console I think 02:41:25
@elvishjerricco:matrix.orgElvishJerricco * It would just be StandardOutput=journal+console I think 02:41:36
@elvishjerricco:matrix.orgElvishJerricco I meant you could forward the whole journal to the console, but yea that's probably a bit much :P 02:41:59
@matthewcroughan:defenestrate.itmatthewcroughan That's not in man systemd.service where is that? 02:42:00
@elvishjerricco:matrix.orgElvishJerricco systemd.exec 02:42:07
@elvishjerricco:matrix.orgElvishJerriccokind of a superclass of service for the options it has in common with like mount units and stuff02:42:23
@matthewcroughan:defenestrate.itmatthewcroughanhmm once again, error, I'll try dumping the console out02:44:41
@matthewcroughan:defenestrate.itmatthewcroughanagain just "failed to start"02:44:57
@matthewcroughan:defenestrate.itmatthewcroughan ah got it, it's /sysroot/tmp/store.squashfs: No such file or directory 02:51:13
@matthewcroughan:defenestrate.itmatthewcroughan /sysroot exists and contains nix and run 02:51:49
@matthewcroughan:defenestrate.itmatthewcroughan inside of nix is store, but no contents 02:51:55
@elvishjerricco:matrix.orgElvishJerriccoI don't understand...02:52:46
@elvishjerricco:matrix.orgElvishJerricco oh, did you just need to mkdir the /syroot/tmp? 02:52:59
@matthewcroughan:defenestrate.itmatthewcroughancan I not just make everything in the root?02:53:34

Show newer messages


Back to Room ListRoom Version: 6