!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 Ah, okay, this error doesn't happen with the installtest 17:33:25
@matthewcroughan:defenestrate.itmatthewcroughan * Ah, okay, this error doesn't happen with the installTest 17:33:30
@matthewcroughan:defenestrate.itmatthewcroughanSo, me trying to get the installTest to fail, was futile17:33:40
@matthewcroughan:defenestrate.itmatthewcroughanthis only happens with the image builder code, and not with the testing code17:33:52
@matthewcroughan:defenestrate.itmatthewcroughan so the installTest for my config succeeds, whereas diskoImages fails with kernel panic 17:34:15
@matthewcroughan:defenestrate.itmatthewcroughan any ideas given that Mic92 ? 17:34:19
@matthewcroughan:defenestrate.itmatthewcroughanAny initial feeling as to why the image builder is so different from the testing?17:34:49
@matthewcroughan:defenestrate.itmatthewcroughan Okay, it's pretty easy to make this happen in nix build -f tests/make-disk-image.nix 18:16:53
@matthewcroughan:defenestrate.itmatthewcroughanyou just increase the closure size of your toplevel a tiny bit, and it begins to happen18:17:04
@matthewcroughan:defenestrate.itmatthewcroughane.g by adding to environment.systemPackages some big packages18:17:28
@matthewcroughan:defenestrate.itmatthewcroughanlike chromium, firefox, etc18:17:31
@lassulus:lassul.uslassulusdid you increase the image size as well?18:17:43
@matthewcroughan:defenestrate.itmatthewcroughan0.018:18:59
@matthewcroughan:defenestrate.itmatthewcroughanI guess that could also cause these issues18:19:03
@matthewcroughan:defenestrate.itmatthewcroughanbad UX18:19:05
@matthewcroughan:defenestrate.itmatthewcroughanI think we should trace if it's left as default18:19:15
@matthewcroughan:defenestrate.itmatthewcroughanhaving to set it, and it not be auto calculated, is definitely counter intuitive18:19:33
@matthewcroughan:defenestrate.itmatthewcroughanEspecially since it's not possible to throw an error when out of space, the VM just sorta does what it wants18:19:54
@matthewcroughan:defenestrate.itmatthewcroughansometimes kernel panic, sometimes cp fails18:20:00
@lassulus:lassul.uslassuluswell auto calculating it is hard, you can adjust the outer image size, but arranging the partitions is a pretty hard problem :D18:20:32
@matthewcroughan:defenestrate.itmatthewcroughanAuto calculating it is half of what systemd-repart's logic is for yeah18:20:41
@matthewcroughan:defenestrate.itmatthewcroughanit's very hard18:20:44
@matthewcroughan:defenestrate.itmatthewcroughanand a lot of postmarketOS code exists to do the smae18:20:53
@matthewcroughan:defenestrate.itmatthewcroughan* and a lot of postmarketOS code exists to do the same18:20:55
@matthewcroughan:defenestrate.itmatthewcroughanperhaps we could have an auto calculating implementation for each supported FS in disko18:21:18
@matthewcroughan:defenestrate.itmatthewcroughanand if your FS doesn't support auto calculation, then tough luck, set the imageSize18:22:06
@lassulus:lassul.uslassulusquestion is where the size is allocated, is it only /nix/store? what happens if you have something like size = "10%" in there? do we make the diskImage 10x your close size?18:22:52
@matthewcroughan:defenestrate.itmatthewcroughanimageSize = "10%" ?18:23:29
@lassulus:lassul.uslassuluswhat happens if you have size = "1G" for your /nix/store partition? just error out?18:23:40
@matthewcroughan:defenestrate.itmatthewcroughanah I see, uh18:24:02

Show newer messages


Back to Room ListRoom Version: 10