| 14 Mar 2026 |
matthewcroughan | 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 | Yeah okay, maybe that's all it is.. | 20:31:56 |
lassulus | seems like it can't find the key | 20:34:16 |
lassulus | so probably unrelated | 20:34:20 |
matthewcroughan | but how does this succeed in the installer test ? | 20:34:30 |
matthewcroughan | but not in disk image building | 20:34:33 |
matthewcroughan | is the exit code ignored in the installer test? | 20:34:40 |
lassulus | it probably creates /tmp/secret.key? | 20:34:48 |
matthewcroughan | ah yeah it does | 20:35:00 |
matthewcroughan | lib/tests.nix does this for tests | 20:35:13 |
matthewcroughan | Okay, so imageSize being set wrong, or errors in the disko config can both lead to kernel panics | 20:37:30 |
matthewcroughan | and ofc not enough space | 20:37:51 |
lassulus | hm errors in the config should lead to eval errors | 20:37:58 |
matthewcroughan | so it's very easy to conflate that with other things, but I think I have an actual reproducer now | 20:38:01 |
matthewcroughan | you do need an image of a certain size before memory becomes an issue | 20:38:17 |
lassulus | except if they are like not catched errors :D | 20:38:17 |
matthewcroughan | By wrong I meant too small | 20:39:08 |
matthewcroughan | which the eval can't catch | 20:39:10 |
matthewcroughan | lassulus: https://github.com/nix-community/disko/pull/1235 | 21:22:40 |
| amadaluzia -> 4d2.org changed their display name from amadaluzia[uorg] to amadaluzia -> 4d2.org. | 21:23:09 |
matthewcroughan | If it is possible to reproduce it on other FS, I couldn't figure that out after a few hours of trying | 21:26:59 |
matthewcroughan | CI seems to fail for some reason that I don't get on my end | 21:28:57 |
matthewcroughan | 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 | https://buildbot.thalheim.io/#/builders/10614/builds/2/steps/1/logs/stdio | 21:29:11 |
| lektrik joined the room. | 21:30:23 |
| 15 Mar 2026 |
matthewcroughan | 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 | Mic92: any idea why the CI fails for https://github.com/nix-community/disko/pull/1235 | 12:52:29 |
| 25 Apr 2024 |
| David Mell (zraexy) joined the room. | 23:38:25 |
| David Mell (zraexy) changed their display name from David Mell to David Mell (zraexy). | 23:51:57 |
| 26 Apr 2024 |
Raj | 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 |