| 23 Jan 2025 |
ElvishJerricco | why tf did that blow up... | 01:22:24 |
matthewcroughan | yeah I'm not suggesting to stop trying to make squashfs | 01:22:41 |
ElvishJerricco | I mean IIUC erofs is better, so it's nice that repart can just do that | 01:23:05 |
matthewcroughan | better for all? | 01:27:28 |
matthewcroughan | even compression? or just read perf? | 01:27:38 |
ElvishJerricco | I'm not familiar enough to say; but I thought it was basically a next-gen replacement for squashfs | 01:28:00 |
matthewcroughan | I'll need some more boot.initrd.supportedFilesystesm = [ "erofs" ] right? | 01:28:14 |
ElvishJerricco | yep | 01:28:21 |
matthewcroughan | I'm pretty unfamiliar with both ero/squash | 01:28:21 |
matthewcroughan | linux> root module: erofs
linux> modprobe: FATAL: Module erofs not found in directory /nix/store/9hkr7vxlp2a59w3r3khn695hc85azg9m-linux-6.12.4-asahi-modules/lib/modules/6.12.4-asahi
| 01:32:03 |
matthewcroughan | 🤔 | 01:32:06 |
matthewcroughan | do I have to compile that in? | 01:34:04 |
matthewcroughan | systemd-repart also supports squashfs | 01:36:05 |
matthewcroughan | ElvishJerricco: https://github.com/NixOS/nixpkgs/blob/1b592cdeb46e83635461cb930daa221e9f24859f/nixos/modules/image/repart-image.nix#L79 | 01:36:55 |
matthewcroughan | so I can just avoid erofs for now | 01:36:59 |
matthewcroughan | as it seems to be absent from the asahi kernel I'm using for whateve rreason | 01:37:11 |
matthewcroughan | * as it seems to be absent from the asahi kernel I'm using for whatever reason | 01:37:13 |
ElvishJerricco | Redacted or Malformed Event | 01:51:39 |
ElvishJerricco | god dammit of course I figure it out literally one minute after deciding to ping people over it. | 01:53:13 |
ElvishJerricco | it's the assertions | 01:53:25 |
ElvishJerricco | * it's the assertions / warnings | 01:53:31 |
ElvishJerricco | Those are evaluated by toplevel and dependent on the partition definitions in image.repart | 01:53:46 |
ElvishJerricco | matthewcroughan: figured out the CopyBlocks thing | 01:55:31 |
matthewcroughan | bug fixers unite | 01:55:57 |
matthewcroughan | thanks a lot | 01:55:59 |
matthewcroughan | ElvishJerricco:
#fileSystems."/nix/store".device = "/dev/disk/by-partlabel/nix-store";
fileSystems."/nix/store" = {
device = "/sysroot/tmp/store.squashfs";
fsType = "squashfs";
options = [ "loop" ];
};
boot.initrd.systemd.services.copytoram = {
before = [ "${utils.escapeSystemdPath "/sysroot/tmp/store.squashfs"}.mount" "initrd-switch-root.target" ];
serviceConfig.ExecStart = "${pkgs.coreutils}/bin/dd if=/dev/disk/by-partlabel/nix-store of=/sysroot/tmp/store.squashfs";
requiredBy = [ "initrd.target" ];
};
| 01:58:33 |
ElvishJerricco | yea I have no idea how to fix this :P | 01:58:36 |
matthewcroughan | Anything obviously missing here | 01:58:37 |
matthewcroughan | I end up with Failed to mount /sysroot/nix/store | 01:58:54 |
ElvishJerricco | yea you need to order after the device and before the /sysroot/nix/store mount | 01:59:27 |