!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

582 Members
NixOS ❤️ systemd161 Servers

Load older messages


SenderMessageTime
23 Jan 2025
@elvishjerricco:matrix.org@elvishjerricco:matrix.org It would just be StandardOutput=console I think 02:41:25
@elvishjerricco:matrix.org@elvishjerricco:matrix.org * It would just be StandardOutput=journal+console I think 02:41:36
@elvishjerricco:matrix.org@elvishjerricco:matrix.org 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.org@elvishjerricco:matrix.org systemd.exec 02:42:07
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgkind 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.org@elvishjerricco:matrix.orgI don't understand...02:52:46
@elvishjerricco:matrix.org@elvishjerricco:matrix.org 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.org@elvishjerricco:matrix.orgthere's a very weird thing where initrd tries to nuke its own ramfs's contents before it does switch-root02:55:12
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgso no02:55:14
@elvishjerricco:matrix.org@elvishjerricco:matrix.org though I guess /run/store.squashfs is probably a tad more appropriate 02:55:27
@elvishjerricco:matrix.org@elvishjerricco:matrix.org and /run gets move-mounted in between stage 1 and stage 2 02:55:46
@matthewcroughan:defenestrate.itmatthewcroughan /run or /sysroot/run? 02:55:53
@elvishjerricco:matrix.org@elvishjerricco:matrix.org just /run to make things easy. That way you don't even need the RequiresMountsFor=/sysroot/yaddayadda 02:56:15
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgwait02:56:25
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgnevermind02:56:26
@elvishjerricco:matrix.org@elvishjerricco:matrix.orgwait, nevermind again, that'll work :P02:56:33
@matthewcroughan:defenestrate.itmatthewcroughanThis is a clustrerfuck02:57:06
@matthewcroughan:defenestrate.itmatthewcroughan * This is a clusterfuck02:57:08
@elvishjerricco:matrix.org@elvishjerricco:matrix.org
    fileSystems."/nix/store" = {
      device = "/run/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=/run/store.squashfs";
      serviceConfig.Type = "oneshot";
      requiredBy = [ "initrd.target" ];
    };
02:57:08
@matthewcroughan:defenestrate.itmatthewcroughanbut in the end, it does produce some nice readable code02:57:14
@matthewcroughan:defenestrate.itmatthewcroughanI can't believe how much of a clusterfuck it can be though02:57:19

Show newer messages


Back to Room ListRoom Version: 6