!oNSIfazDqEcwhcOjSL:matrix.org

disko

391 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko105 Servers

Load older messages


SenderMessageTime
14 Mar 2026
@matthewcroughan:defenestrate.itmatthewcroughan
nixos-disko-images> + zfs create -up zroot/encrypted -o encryption=aes-256-gcm -o keyformat=passphrase -o keylocation=file:///tmp/secret.key -o mountpoint=none
nixos-disko-images> cannot create 'zroot/encrypted': Failed to open key material file: No such file or directory

Maybe that's the reason though?

20:30:40
@matthewcroughan:defenestrate.itmatthewcroughanYeah okay, maybe that's all it is..20:31:56
@lassulus:lassul.uslassulusseems like it can't find the key20:34:16
@lassulus:lassul.uslassulusso probably unrelated20:34:20
@matthewcroughan:defenestrate.itmatthewcroughanbut how does this succeed in the installer test ?20:34:30
@matthewcroughan:defenestrate.itmatthewcroughanbut not in disk image building20:34:33
@matthewcroughan:defenestrate.itmatthewcroughanis the exit code ignored in the installer test?20:34:40
@lassulus:lassul.uslassulusit probably creates /tmp/secret.key?20:34:48
@matthewcroughan:defenestrate.itmatthewcroughanah yeah it does20:35:00
@matthewcroughan:defenestrate.itmatthewcroughanlib/tests.nix does this for tests20:35:13
@matthewcroughan:defenestrate.itmatthewcroughan Okay, so imageSize being set wrong, or errors in the disko config can both lead to kernel panics 20:37:30
@matthewcroughan:defenestrate.itmatthewcroughanand ofc not enough space20:37:51
@lassulus:lassul.uslassulushm errors in the config should lead to eval errors20:37:58
@matthewcroughan:defenestrate.itmatthewcroughanso it's very easy to conflate that with other things, but I think I have an actual reproducer now20:38:01
@matthewcroughan:defenestrate.itmatthewcroughanyou do need an image of a certain size before memory becomes an issue20:38:17
@lassulus:lassul.uslassulusexcept if they are like not catched errors :D20:38:17
@matthewcroughan:defenestrate.itmatthewcroughanBy wrong I meant too small20:39:08
@matthewcroughan:defenestrate.itmatthewcroughanwhich the eval can't catch20:39:10
@matthewcroughan:defenestrate.itmatthewcroughan lassulus: https://github.com/nix-community/disko/pull/1235 21:22:40
@amadaluzia:unredacted.orgamadaluzia -> 4d2.org changed their display name from amadaluzia[uorg] to amadaluzia -> 4d2.org.21:23:09
@matthewcroughan:defenestrate.itmatthewcroughanIf it is possible to reproduce it on other FS, I couldn't figure that out after a few hours of trying21:26:59
@matthewcroughan:defenestrate.itmatthewcroughanCI seems to fail for some reason that I don't get on my end21:28:57
@matthewcroughan:defenestrate.itmatthewcroughan nixos-disko-images> [2026-03-14T21:25:41Z WARN virtiofsd::passthrough] Failed to open file handle for the root node: Operation not permitted (os error 1) 21:29:09
@matthewcroughan:defenestrate.itmatthewcroughanhttps://buildbot.thalheim.io/#/builders/10614/builds/2/steps/1/logs/stdio21:29:11
@lektricitee:matrix.orglektrik joined the room.21:30:23
15 Mar 2026
@matthewcroughan:defenestrate.itmatthewcroughan lassulus: About to go to bed, but I just tried your latest attempts on https://github.com/nix-community/disko/pull/1234/commits and it doesn't fix it 01:56:59
@matthewcroughan:defenestrate.itmatthewcroughan Mic92: any idea why the CI fails for https://github.com/nix-community/disko/pull/1235 12:52:29
25 Apr 2024
@zraexy:nixos.devDavid Mell (zraexy) joined the room.23:38:25
@zraexy:nixos.devDavid Mell (zraexy) changed their display name from David Mell to David Mell (zraexy).23:51:57
26 Apr 2024
@raj-magesh:matrix.orgRaj

Couple of questions about NixOS live USBs:

I want to partition my 64 GB USB flash drive into two partitions (FAT32 live USB + ext4 storage), so I used the following disko config:

let
  usb = "/dev/disk/by-id/usb-USB_SanDisk_3.2Gen1_0401a943ae4197a38a6f9070194e9ea2b3fb8dbb7997e05ed1b197c0e28946be4b8f000000000000000000001cf4be6800926418a955810751ab6336-0:0";
in {
  disko.devices = {
    disk = {
      live = {
        type = "disk";
        device = usb;
        content = {
          type = "gpt";
          partitions = {
            ESP = {
              type = "EF00";
              device = "${usb}-part1";
              priority = 0;
              size = "8192M";
              content = {
                type = "filesystem";
                format = "vfat";
              };
            };
            storage = {
              device = "${usb}-part2";
              priority = 1;
              size = "100%";
              content = {
                type = "filesystem";
                format = "ext4";
              };
            };
          };
        };
      };
    };
  };
}

I then copied over the files from the (minimal, non-graphical) NixOS live ISO into partition 1, hoping that the instructions on the Arch wiki would generalize to NixOS, but then my live ISO gets stuck with the following error message:

[...]
Timed out waiting for device /dev/root, trying to mount anyway
mounting /dev/root on /iso...
mount: mounting /dev/root on /mnt-root/iso failed: No such file or directory

An error occurred [...]

How can I use my USB flash drive as both a live USB and as a storage device? I found this relevant Discourse link but there was no resolution to the problem there.

I realize this might not be the best place to ask this, but I figured that folks here would have expertise configuring boot partitions correctly.

02:02:16

Show newer messages


Back to Room ListRoom Version: 10