!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

624 Members
NixOS ❤️ systemd170 Servers

Load older messages


SenderMessageTime
23 Jan 2025
@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
@elvishjerricco:matrix.orgElvishJerriccoi.e.01:59:29
@matthewcroughan:defenestrate.itmatthewcroughanhow does it even become this string?01:59:30
@matthewcroughan:defenestrate.itmatthewcroughan /sysroot/nix/store isn't what I said, I said /sysroot/tmp/store.squashfs 01:59:46
@matthewcroughan:defenestrate.itmatthewcroughanah okay the sysroot is prepended by systemd02:00:01
@matthewcroughan:defenestrate.itmatthewcroughan and my mount is /nix/store 02:00:04
@elvishjerricco:matrix.orgElvishJerricco
before = [ "sysroot-nix-store.mount" ];
after = [ "dev-disk-by\\x2dpartlabel-nix\\x2dstore.device" ];
02:00:15

Show newer messages


Back to Room ListRoom Version: 6