!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

622 Members
NixOS ❤️ systemd170 Servers

Load older messages


SenderMessageTime
23 Jan 2025
@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
@matthewcroughan:defenestrate.itmatthewcroughan and be like /device = "/store.squashfs"; 02:54:00
@matthewcroughan:defenestrate.itmatthewcroughan * and be like device = "/store.squashfs"; 02:54:15
@elvishjerricco:matrix.orgElvishJerriccothere's a very weird thing where initrd tries to nuke its own ramfs's contents before it does switch-root02:55:12
@elvishjerricco:matrix.orgElvishJerriccoso no02:55:14
@elvishjerricco:matrix.orgElvishJerricco though I guess /run/store.squashfs is probably a tad more appropriate 02:55:27
@elvishjerricco:matrix.orgElvishJerricco and /run gets move-mounted in between stage 1 and stage 2 02:55:46

Show newer messages


Back to Room ListRoom Version: 6