!oNSIfazDqEcwhcOjSL:matrix.org

disko

397 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko107 Servers

Load older messages


SenderMessageTime
14 Mar 2026
@joerg:thalheim.ioMic92* Has been to long since I read that. I think it did something like read into mmap? This would actually not be direct Io but don't remember the mmap flags it used19:55:19
@joerg:thalheim.ioMic92Some of them tell the Kernel to not bother with page cache19:56:06
@matthewcroughan:defenestrate.itmatthewcroughanI think it is somehow dependent on the host20:04:40
@matthewcroughan:defenestrate.itmatthewcroughanI have a reproducer now that only fails sometimes20:04:47
@matthewcroughan:defenestrate.itmatthewcroughanEither that or it is dependent on some randomness20:05:42
@matthewcroughan:defenestrate.itmatthewcroughan does xargs sort things on the way in? 20:05:54
@lassulus:lassul.uslassulusgood question, maybe not20:06:20
@matthewcroughan:defenestrate.itmatthewcroughaneven if it was that, and you sorted it, that only means for the same closure you would get the same bug, rather than it failing randomly20:06:45
@matthewcroughan:defenestrate.itmatthewcroughanbut the root cause would still be there20:06:51
@lassulus:lassul.uslassulusmaybe we just create like 8x1gb files and copy that into the new image? for a reproducer20:07:02
@joerg:thalheim.ioMic92
In reply to @lassulus:lassul.us
good question, maybe not
Should be stable because closure info stays the same
20:19:38
@joerg:thalheim.ioMic92The parallel flag might introduce some non-determinism20:20:07
@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

Show newer messages


Back to Room ListRoom Version: 10