!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

607 Members
NixOS ❤️ systemd172 Servers

Load older messages


SenderMessageTime
23 Jan 2025
@elvishjerricco:matrix.orgElvishJerriccowhy tf did that blow up...01:22:24
@matthewcroughan:defenestrate.itmatthewcroughan yeah I'm not suggesting to stop trying to make squashfs 01:22:41
@elvishjerricco:matrix.orgElvishJerriccoI mean IIUC erofs is better, so it's nice that repart can just do that01:23:05
@matthewcroughan:defenestrate.itmatthewcroughan better for all? 01:27:28
@matthewcroughan:defenestrate.itmatthewcroughaneven compression? or just read perf?01:27:38
@elvishjerricco:matrix.orgElvishJerriccoI'm not familiar enough to say; but I thought it was basically a next-gen replacement for squashfs01:28:00
@matthewcroughan:defenestrate.itmatthewcroughan I'll need some more boot.initrd.supportedFilesystesm = [ "erofs" ] right? 01:28:14
@elvishjerricco:matrix.orgElvishJerriccoyep01:28:21
@matthewcroughan:defenestrate.itmatthewcroughanI'm pretty unfamiliar with both ero/squash01:28:21
@matthewcroughan:defenestrate.itmatthewcroughan
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:defenestrate.itmatthewcroughan🤔01:32:06
@matthewcroughan:defenestrate.itmatthewcroughando I have to compile that in?01:34:04
@matthewcroughan:defenestrate.itmatthewcroughansystemd-repart also supports squashfs01:36:05
@matthewcroughan:defenestrate.itmatthewcroughan ElvishJerricco: https://github.com/NixOS/nixpkgs/blob/1b592cdeb46e83635461cb930daa221e9f24859f/nixos/modules/image/repart-image.nix#L79 01:36:55
@matthewcroughan:defenestrate.itmatthewcroughanso I can just avoid erofs for now 01:36:59
@matthewcroughan:defenestrate.itmatthewcroughanas it seems to be absent from the asahi kernel I'm using for whateve rreason 01:37:11
@matthewcroughan:defenestrate.itmatthewcroughan * as it seems to be absent from the asahi kernel I'm using for whatever reason 01:37:13
@elvishjerricco:matrix.orgElvishJerriccoRedacted or Malformed Event01:51:39
@elvishjerricco:matrix.orgElvishJerriccogod dammit of course I figure it out literally one minute after deciding to ping people over it.01:53:13
@elvishjerricco:matrix.orgElvishJerriccoit's the assertions01:53:25
@elvishjerricco:matrix.orgElvishJerricco* it's the assertions / warnings01:53:31
@elvishjerricco:matrix.orgElvishJerricco Those are evaluated by toplevel and dependent on the partition definitions in image.repart 01:53:46
@elvishjerricco:matrix.orgElvishJerricco matthewcroughan: figured out the CopyBlocks thing 01:55:31
@matthewcroughan:defenestrate.itmatthewcroughanbug fixers unite01:55:57
@matthewcroughan:defenestrate.itmatthewcroughanthanks a lot 01:55:59
@matthewcroughan:defenestrate.itmatthewcroughan

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:matrix.orgElvishJerriccoyea I have no idea how to fix this :P01:58:36
@matthewcroughan:defenestrate.itmatthewcroughanAnything obviously missing here 01:58:37
@matthewcroughan:defenestrate.itmatthewcroughanI end up with Failed to mount /sysroot/nix/store 01:58:54
@elvishjerricco:matrix.orgElvishJerricco yea you need to order after the device and before the /sysroot/nix/store mount 01:59:27

Show newer messages


Back to Room ListRoom Version: 6