!oNSIfazDqEcwhcOjSL:matrix.org

disko

380 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko99 Servers

Load older messages


SenderMessageTime
14 Mar 2026
@matthewcroughan:defenestrate.itmatthewcroughan I was thinking btw, disko could auto generate the networking.hostId based on a hash of the device 16:38:52
@matthewcroughan:defenestrate.itmatthewcroughan * I was thinking btw, disko could auto generate the networking.hostId based on a hash of the device in pure nix 16:38:55
@matthewcroughan:defenestrate.itmatthewcroughanone less thing to worry about 16:39:01
@joerg:thalheim.ioMic92in srvos we set a fixed hostid16:39:43
@joerg:thalheim.ioMic92But it feels a bit overarching for disko to set this. It's a disk partitioning framework16:40:19
@joerg:thalheim.ioMic92* in srvos we set a fixed hostid for all machines16:40:24
@joerg:thalheim.ioMic92* But it feels a bit overarching for disko to set this. It's a disk partitioning framework and this feels more like general NixOS configuration16:40:42
@matthewcroughan:defenestrate.itmatthewcroughanAh sure, I guess you could just do the hashing trick that I mentioned in your own config16:47:24
@joerg:thalheim.ioMic92honestly I don't think this even needs hashing16:48:39
@joerg:thalheim.ioMic92I have seen no usecase yet for a per machine hostid, except if you have zfs hosted on iscsi network block devices and want to prevent accidents.16:49:11
@joerg:thalheim.ioMic92having the same hostid on your installer as on your machine makes things much easier to manage, which is why I set the the same hostid that the nixos installer uses16:49:46
@matthewcroughan:defenestrate.itmatthewcroughanIt's a per pool id isn't it?16:51:27
@matthewcroughan:defenestrate.itmatthewcroughanthe host id of the machine and pool are tied together so that you can't plug one pool into another pool16:51:56
@matthewcroughan:defenestrate.itmatthewcroughan* the host id of the machine and pool are tied together so that you can't plug one pool into another machine16:51:59
@matthewcroughan:defenestrate.itmatthewcroughan* the host id of the machine and pool are tied together so that you can't plug one pool into another machine, right?16:52:02
@matthewcroughan:defenestrate.itmatthewcroughanSo atm I cannot use disko to create disk images, because the kernel panics, and this has always been a buggy feature since 2024 evben16:54:23
@matthewcroughan:defenestrate.itmatthewcroughan* So atm I cannot use disko to create disk images, because the kernel panics, and this has always been a buggy feature since 2024 even16:54:25
@matthewcroughan:defenestrate.itmatthewcroughanLike, I haven't observed a scenario where disko image creation actually works as intended16:54:35
@matthewcroughan:defenestrate.itmatthewcroughanIt's not like I haven't contributed bug fixes, changes, I have 16:54:51
@matthewcroughan:defenestrate.itmatthewcroughanAre there any actual users?16:55:02
@matthewcroughan:defenestrate.itmatthewcroughan* Are there any actual users of that feature?16:55:48
@matthewcroughan:defenestrate.itmatthewcroughanAh maybe the reason your tests don't catch it is because of something the tests do that is different from actual usage16:59:42
@matthewcroughan:defenestrate.itmatthewcroughan The existence of makeDiskoTest makes actual usage by real users, and your tests, divergent 17:00:00
@matthewcroughan:defenestrate.itmatthewcroughanActually another thing the disko image builder isn't taking into account, is the closure size of the toplevel it is installing17:01:45
@matthewcroughan:defenestrate.itmatthewcroughan
ed-disko-images> + sgdisk --align-end --new=1:0:+2G --partition-guid=1:R --change-name=1:disk-disk1-ESP --typecode=1:EF00 --attributes=1:=:0 /dev/vda
ed-disko-images> Could not create partition 1 from 2048 to 4196351
ed-disko-images> Unable to set partition 1's name to 'disk-disk1-ESP'!
ed-disko-images> Could not change partition 1's type code to EF00!
ed-disko-images> Error encountered; not saving changes.
ed-disko-images> + sgdisk --partition-guid=1:R --change-name=1:disk-disk1-ESP --typecode=1:EF00 --attributes=1:=:0 /dev/vda
ed-disko-images> Unable to set partition 1's name to 'disk-disk1-ESP'!
ed-disko-images> Could not change partition 1's type code to EF00!
ed-disko-images> Error encountered; not saving changes.
17:06:53
@matthewcroughan:defenestrate.itmatthewcroughan Is that supposed to happen? lassulus 17:07:05
@matthewcroughan:defenestrate.itmatthewcroughan

BTW, this is the actual disko tests in disko's repo

vm-test-run-disko-zfs> machine # /dev/vdc: PTUUID="a4ebef6e-5fb0-4a75-9bb9-3f1de3c80709" PTTYPE="gpt"
vm-test-run-disko-zfs> machine # + sgdisk --align-end --new=1:0:-0 --partition-guid=1:R --change-name=1:disk-y-zfs --typecode=1:8300 --attributes=c
vm-test-run-disko-zfs> machine # Could not create partition 1 from 8386560 to 8388574
vm-test-run-disko-zfs> machine # Error encountered; not saving changes.
17:08:13
@matthewcroughan:defenestrate.itmatthewcroughanHaha you have got to be kidding me17:13:10
@matthewcroughan:defenestrate.itmatthewcroughanThe thing causing the kernel panic is the fact that the fat32 partition is 2G 17:13:29
@matthewcroughan:defenestrate.itmatthewcroughanSo if I change this from 2G to 1G, it gets further17:14:00

Show newer messages


Back to Room ListRoom Version: 10