| 14 Mar 2026 |
matthewcroughan | lassulus: if you want a minimal reproducer for ZFS | 20:29:49 |
matthewcroughan | no PR needed | 20:29:57 |
matthewcroughan | diff --git a/tests/make-disk-image.nix b/tests/make-disk-image.nix
index eb81f15..2308836 100644
--- a/tests/make-disk-image.nix
+++ b/tests/make-disk-image.nix
@@ -5,10 +5,11 @@
(pkgs.nixos [
../module.nix
- ../example/simple-efi.nix
+ ../example/zfs.nix
(
{ config, ... }:
{
+ networking.hostId = "8425e349";
documentation.enable = false;
system.stateVersion = config.system.nixos.release;
disko.memSize = 2048;
| 20:30:00 |
matthewcroughan | This will cause a kernel panic | 20:30:10 |
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 |