disko | 353 Members | |
| disko - declarative disk partitioning - https://github.com/nix-community/disko | 89 Servers |
| Sender | Message | Time |
|---|---|---|
| 11 Feb 2025 | ||
| I will try to add that to my thaigersprint todo list tomorrow :D | 14:28:16 | |
| Obligatory: I wish nix had better testing/debugging tools, this is taking way longer to nail down my overall issue haha... | 14:30:10 | |
In reply to @lassulus:lassul.usYou want issues for your sprint? Haha | 20:09:11 | |
| 12 Feb 2025 | ||
| You have more? :D | 01:38:19 | |
In reply to @lassulus:lassul.usI looked up that thaigersprint was, that seems unique. Talk about a cool experience | 03:48:41 | |
| * I looked up what thaigersprint was, that seems unique. Talk about a cool experience | 03:48:49 | |
| ok, deepMergeMap actually doesn't merge lists, since recursiveUpdate doesn't take care of that | 05:31:21 | |
| projectinitiative: https://github.com/nix-community/disko/pull/963 | 10:21:50 | |
| looks like this fixed the deviceDendencies list not showing up! I now just have to figure out why my type ordering is not working correctly. | 14:49:36 | |
| If you have a PR with the current state I could take a look tomorrowish | 15:17:11 | |
| Thanks for the comments on the binfmt PR. I'm still working on it | 17:27:57 | |
| Current state of my attempt: https://github.com/nix-community/disko/pull/961 | 18:42:48 | |
| 13 Feb 2025 | ||
| lassulus I think I discovered another bug. I fixed the issue by renaming my type to "dxcachefs" instead of "bcachefs" In the dependency sort list, if there are any types at alphabetically before the "disk" type, the sortDeviceDependencies function drops those at the top. So my pool object was getting collated as the very first entry in the _create functions. I don't think this was caught because mraid and zpool always appear at the end of the device dependency list due to their position in the alphabet. I think the function will need a specific check to always put disk device types at the beginning of the list | 22:30:01 | |
| 22:31:20 | |
*
| 22:32:43 | |
*
| 22:33:28 | |
| * lassulus I think I discovered another bug. I fixed the issue by renaming my type to "dxcachefs" instead of "bcachefs" In the dependency sort list, if there are any types that are alphabetically before the "disk" type, the sortDeviceDependencies function drops those at the top. So my pool object was getting collated as the very first entry in the _create functions. I don't think this was caught because mraid and zpool always appear at the end of the device dependency list due to their position in the alphabet. I think the function will need a specific check to always put disk device types at the beginning of the list | 22:34:14 | |
| Made a PR with the function changes that fixed my other problem: https://github.com/nix-community/disko/pull/968 | 22:45:49 | |
| 14 Feb 2025 | ||
| hmm, weird that this bug appears, I thought the bcachefs devices would depend on the disks and would be created afterwards automatically by the sorting | 03:56:01 | |
| I guess I have to take a deeper look again after my hangover passed | 03:56:11 | |
| Another weird oddity: I am not sure that the GPT formatter is respecting the device paths. When running the test VM against the mdadm config, I would have assumed it would fail since the example file doesn't have a valid device path. (/dev/my-drive) Checking the logs, it just looks like it picks the next disk in the sequence:
I tested this by changing the path to | 05:49:13 | |
Figured out that the prepareDiskoConfig function in the lib/tests framework was overriding the test. Curious why that is a better option than just using the virtio path. Creates some confusion and technically isn't validating all aspects of the pathing | 16:03:30 | |
* Figured out that the prepareDiskoConfig function in the lib/tests framework was overriding device property for tests. Curious why that is a better option than just using the virtio path. Creates some confusion and technically isn't validating all aspects of the pathing | 16:03:56 | |
| Because we want to test real disko configs in VMS and not just configs crafted for VMS | 16:18:29 | |
| right, but if the config is mutated to fit a VM, isn't that essentially the same thing? | 16:19:26 | |
| * right, but if the config is mutated internally to fit a VM, isn't that essentially the same thing? | 16:19:51 | |
| probably? we mainly use this so wen can have config.system.build.installTest or vmWithDisko on every machine that uses disko | 16:21:26 | |
| I 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 | |
| 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 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 | |
| * 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 | |