| 22 May 2025 |
horyzon7 | i’ve also tried adding name = “root” under root = {, but that also did not solve
for some reason, disko is running sgdisk with the flag —change-name=2:disk-main-root instead of the appropriate name that I’m trying to specify by adding name = “root”
| 22:49:04 |
horyzon7 | for reference, an ls into /dev/disk/by-partlabel when following the instructions (https://nixos.org/manual/nixos/stable/#sec-installation-manual-partitioning-UEFI) gives ESP root swap, but the above disko config is giving me a disk-main-ESP, as is expected by the erroneous switch of sgdisk | 23:00:24 |
horyzon7 | im noticing the same behavior with simple.efi (https://raw.githubusercontent.com/nix-community/disko/refs/heads/master/example/simple-efi.nix) | 23:27:04 |
| 23 May 2025 |
lassulus | it seems the end of your ESP partition is on the same block as your root partition | 07:08:30 |
lassulus | and it's end overlaps with the swap partition | 07:08:40 |
lassulus | if you want to override the label, you need to set label on the partition | 07:08:54 |
| food style edible product changed their display name from SS Bullshit Dreams to Mena, AR. | 14:26:16 |
horyzon7 | so, concretely, I need to use a label = “…”; for each partition.
also, how does my ESP partition overflow into my other partitions? the only way that I can think of is if end = is inclusive (rather than exclusive), which would be weird.
so you’re saying that both start= and end= are inclusive?
| 18:30:01 |
horyzon7 | I say its weird because this how we make the partitions according to the nixos manual
mkpart ESP fat32 1MB 512MB
mkpart root ext4 512MB -8GB
mkpart swap linux-swap -8GB 100% | 18:31:29 |
horyzon7 | so I quite literally just attempted copying that | 18:31:40 |
lassulus | yes, they are sadly inclusive, not sure why sgdisk was built that way :D | 18:33:05 |
lassulus | thats why I usually leave start empty, because 0 will pick the next empty space | 18:33:32 |
horyzon7 | ah so its sgdisk’s fault. alright, thanks! | 18:33:52 |
lassulus | I thought about different ways to fix that in disko, but nothing good comes to mind, maybe there is a way to do a 1 block addition in the specification? but on my last search I didn't find anything | 18:35:05 |
| 24 May 2025 |
| sss joined the room. | 13:01:58 |
| row joined the room. | 14:28:29 |
| food style edible product changed their display name from Mena, AR to SS Bullshit Dreams. | 17:25:10 |
| food style edible product changed their display name from SS Bullshit Dreams to SSBSD. | 17:25:21 |
| 25 May 2025 |
nicoty | Hello. I'm trying to set up a VM using a flake and disko, but the flake fails to build due to an sgdisk error ("Could not create partition 1"). What am I doing wrong? | 22:26:30 |
lassulus | you need to set imageSize on the disk type | 22:34:37 |
lassulus | the default is just 2G | 22:34:48 |
| @nemnix:matrix.org left the room. | 22:41:07 |
nicoty | In reply to @lassulus:lassul.us you need to set imageSize on the disk type Thank you, I'll give it a shot! | 22:50:33 |
| 26 May 2025 |
no-mood | Redacted or Malformed Event | 16:13:53 |
| Alison Jenkins joined the room. | 18:49:31 |
| 27 May 2025 |
| @realhotgirlshit:envs.net left the room. | 07:50:45 |
| thou.vow joined the room. | 18:05:57 |
thou.vow | I wonder what is the priority field of ESP in https://github.com/nix-community/disko/blob/master/example/btrfs-subvolumes.nix | 18:22:07 |
thou.vow | I can't find documentation of it | 18:53:00 |
thou.vow | Also, how can I pass arguments do mkfs? | 18:59:32 |