| 23 Jan 2025 |
@elvishjerricco:matrix.org | It would just be StandardOutput=console I think | 02:41:25 |
@elvishjerricco:matrix.org | * It would just be StandardOutput=journal+console I think | 02:41:36 |
@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 | That's not in man systemd.service where is that? | 02:42:00 |
@elvishjerricco:matrix.org | systemd.exec | 02:42:07 |
@elvishjerricco:matrix.org | kind of a superclass of service for the options it has in common with like mount units and stuff | 02:42:23 |
matthewcroughan | hmm once again, error, I'll try dumping the console out | 02:44:41 |
matthewcroughan | again just "failed to start" | 02:44:57 |
matthewcroughan | ah got it, it's /sysroot/tmp/store.squashfs: No such file or directory | 02:51:13 |
matthewcroughan | /sysroot exists and contains nix and run | 02:51:49 |
matthewcroughan | inside of nix is store, but no contents | 02:51:55 |
@elvishjerricco:matrix.org | I don't understand... | 02:52:46 |
@elvishjerricco:matrix.org | oh, did you just need to mkdir the /syroot/tmp? | 02:52:59 |
matthewcroughan | can I not just make everything in the root? | 02:53:34 |
matthewcroughan | and be like /device = "/store.squashfs"; | 02:54:00 |
matthewcroughan | * and be like device = "/store.squashfs"; | 02:54:15 |
@elvishjerricco:matrix.org | there's a very weird thing where initrd tries to nuke its own ramfs's contents before it does switch-root | 02:55:12 |
@elvishjerricco:matrix.org | so no | 02:55:14 |
@elvishjerricco:matrix.org | though I guess /run/store.squashfs is probably a tad more appropriate | 02:55:27 |
@elvishjerricco:matrix.org | and /run gets move-mounted in between stage 1 and stage 2 | 02:55:46 |
matthewcroughan | /run or /sysroot/run? | 02:55:53 |
@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 | wait | 02:56:25 |
@elvishjerricco:matrix.org | nevermind | 02:56:26 |
@elvishjerricco:matrix.org | wait, nevermind again, that'll work :P | 02:56:33 |
matthewcroughan | This is a clustrerfuck | 02:57:06 |
matthewcroughan | * This is a clusterfuck | 02:57:08 |
@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 | but in the end, it does produce some nice readable code | 02:57:14 |
matthewcroughan | I can't believe how much of a clusterfuck it can be though | 02:57:19 |