!oNSIfazDqEcwhcOjSL:matrix.org

disko

353 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko89 Servers

Load older messages


SenderMessageTime
14 Feb 2025
@projectinitiative:matrix.orgprojectinitiativeright, but if the config is mutated to fit a VM, isn't that essentially the same thing? 16:19:26
@projectinitiative:matrix.orgprojectinitiative* right, but if the config is mutated internally to fit a VM, isn't that essentially the same thing?16:19:51
@lassulus:lassul.uslassulusprobably? we mainly use this so wen can have config.system.build.installTest or vmWithDisko on every machine that uses disko16:21:26
@projectinitiative:matrix.orgprojectinitiativeI say this because I ran into this issue because of the mutation, the default device appears empty, so the default value in the gpt module tries to set the device path to the partition label based on the disk config's top level name, but that won't always exist, especially if the list of device names are mapped to /dev/vd* 16:23:42
@projectinitiative:matrix.orgprojectinitiativeStill trying to wrap my head around the whole arch and testing framework. Things seem to work how I understand it with real hardware. Even on am external test VM. When using the built in testing framework and VM the behavior seems different than my understanding. Might still be missing a piece 16:27:00
@projectinitiative:matrix.orgprojectinitiative* Still trying to wrap my head around the whole arch and testing framework. Things seem to work how I understand it with real hardware. Even on an externaltest VM. When using the built in testing framework and VM the behavior seems different from my understanding. Might still be missing a piece 16:28:59
@lassulus:lassul.uslassulusI'm not sure I understand the issue but yeah, the testframework is a bit underdocumented and I mostly did it in one big step16:34:58
@projectinitiative:matrix.orgprojectinitiativeI'll keep exploring through it. I appreciate the patience with my questions16:52:03
15 Feb 2025
@benjb83:matrix.orgBenjB83 joined the room.10:17:34
@benjb83:matrix.orgBenjB83 changed their display name from Benjamín Buske to BenjB83.10:43:13
18 Feb 2025
@projectinitiative:matrix.orgprojectinitiative

Did some more investigating, and running into an issue with sgdisk not creating the partition labels when using GPT:

sgdisk --align-end --new=1:0:-0 --partition-guid=1:R --change-name=1:disk-disk3-bcachefs --typecode=1:8300 /dev/vdd

The auto populated /dev/disk/by-partlabel/disk-disk3-bcachefs path doesn't exist. I was reading some issues on github about a potential length issue, so I reduced the names of the disks to disk1 disk2 and disk3. Still facing this issue. Any insights would be great

15:15:54
@projectinitiative:matrix.orgprojectinitiative *

Did some more investigating, and running into an issue with sgdisk not creating the partition labels when using the GPT module:

sgdisk --align-end --new=1:0:-0 --partition-guid=1:R --change-name=1:disk-disk3-bcachefs --typecode=1:8300 /dev/vdd

The auto populated /dev/disk/by-partlabel/disk-disk3-bcachefs path doesn't exist. I was reading some issues on github about a potential length issue, so I reduced the names of the disks to disk1 disk2 and disk3. Still facing this issue. Any insights would be great

15:16:10
@lassulus:lassul.uslassulusI have a memory of some udev rules being required to create partition labels15:31:12
@lassulus:lassul.uslassulusMaybe that is the problem here15:31:20
@projectinitiative:matrix.orgprojectinitiativeMight be. I tried creating them interactively in the test VM and I couldn't get the labels to create. Curious if there is a different way to glean the newly created part. Maybe through the new UUID feature somehow.16:00:01
@dustee:matrix.orgdustee how do i execute the disko drive formatting script for system in a flake .#nixosConfigurations.my-host ? im trying to install a system but i need to first format and mount the partitions before executing nixos-install because i run out of memory/storage otherwise 20:52:59
@dustee:matrix.orgdustee * how do i execute the disko drive formatting script for system in a flake .#nixosConfigurations.my-host ? im trying to install a system and i guess i need to first format and mount the partitions before executing nixos-install because i run out of memory/storage otherwise 20:53:22
@dustee:matrix.orgdustee disko /disk-config.nix is a thing i suppose, but i have some variables baked into the disko config in my flake so id need to eval that 20:55:30
@dustee:matrix.orgdusteenevermind, got rid of those vars so i can run disko as standalone21:13:17
@dustee:matrix.orgdustee btw isnt it kinda weird that disko-install doesnt create and mount the partitions before downloading gigabytes of packages? it will run out of tmpfs memory everytime and unable to install 21:15:46
@dustee:matrix.orgdustee * btw isnt it kinda weird that disko-install doesnt create and mount the partitions before downloading gigabytes of packages? it will run out of tmpfs storage everytime and unable to install 21:16:04
@sigmasquadron:matrix.orgSigmaSquadronIt'd probably make more sense to deprecate disko-install. Everyone seems to be using nixos-anywhere, clan, nixops, morph, or some other installer system.21:18:39
@dustee:matrix.orgdusteedont all those require another nixos host to perform the nix commands? its usefull to be able to do it all with a single machine21:19:48
@dustee:matrix.orgdustee* dont all those require another nixos host to perform the nix commands? its usefull to be able to do it all with a single machine booted into nixos-minimal21:20:08
@dustee:matrix.orgdustee* dont all those require another nixos host to perform the nix commands? its useful to be able to do it all with a single machine booted into nixos-minimal21:20:13
@sigmasquadron:matrix.orgSigmaSquadronWell, that's what nixos-install is for21:21:42
@dustee:matrix.orgdustee i just had to separate disko out of my flake config so i could run disko and then nixos-install, it would be nicer to be able to do disko-install --flake myflake#myhost and it would destroy,format,mount,install,reboot,done 21:24:12
@dustee:matrix.orgdusteebut i guess its w/e21:24:18
19 Feb 2025
@smolp:matrix.org@smolp:matrix.org joined the room.00:59:10
@elschug:matrix.orgElmar Schug joined the room.09:25:51

Show newer messages


Back to Room ListRoom Version: 10