!oNSIfazDqEcwhcOjSL:matrix.org

disko

382 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko100 Servers

Load older messages


SenderMessageTime
14 Mar 2026
@matthewcroughan:defenestrate.itmatthewcroughan lassulus: if you want a minimal reproducer for ZFS 20:29:49
@matthewcroughan:defenestrate.itmatthewcroughanno PR needed20:29:57
@matthewcroughan:defenestrate.itmatthewcroughan
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:defenestrate.itmatthewcroughanThis will cause a kernel panic20:30:10
@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

There are no newer messages yet.


Back to Room ListRoom Version: 10