Sender | Message | Time |
---|---|---|
8 Aug 2024 | ||
lassulus | :D maybe I should have written NoDeps | 11:40:21 |
eyJhb | We got to it in the end :p Thank you for the quick response :D Now I can continue | 11:42:33 |
10 Aug 2024 | ||
matthewcroughan | Disko can't make something with an arbitrary sector start or gpt table length can it? | 21:48:22 |
matthewcroughan | Is it possible with the gpt type to dd a nix store path to a partition? | 22:06:21 |
matthewcroughan | I guess that'd be done in the postCreate hook, but it's quite an unsafe thing to do | 22:13:05 |
matthewcroughan | not clear how to access the disko vars or what ones to access to get the absolute path to the partition in question, by nix evaluation | 22:13:25 |
11 Aug 2024 | ||
matthewcroughan | Here's what I'm talking about, and the best I could come up with | 14:23:32 |
matthewcroughan |
| 14:23:35 |
matthewcroughan | *
| 14:23:44 |
matthewcroughan | notice how I've just guessed the by-partlabel paths and it's not happening by nix evaluation, and how I've had to use a recursive set to get the device path | 14:24:24 |
matthewcroughan | This also won't work in the image builder, it will only work for running the real disko script due to the dependency on the device path which will differ in the VM | 14:24:49 |
matthewcroughan | Another issue with using disko for embedded is that the label name is derived from the attributes | 16:01:57 |
matthewcroughan |
| 16:01:58 |
matthewcroughan | the name is disk-disk1-fip and not fip , but the u-boot bl2 (second stage bootloader) specifically reads this label and matches a string | 16:02:24 |
matthewcroughan | So this seems like another awkward point for disko, where I'm unable to coerce it into doing the right thing for the use-case | 16:02:50 |
matthewcroughan | I managed to end up with the following error on bcachefs creation, maybe the diskoScript is too fast?
| 16:03:36 |
matthewcroughan | Posted that to #bcache anyway, having so many issues with it lately | 16:07:10 |
lassulus | You can override the partition Labels. Also some attributes are available in the hooks like the device | 16:08:07 |
lassulus | Just run env in the hook and look at the output | 16:08:21 |
matthewcroughan | In reply to @lassulus:lassul.usI may be able to, but this then makes it even more risky to run outside of the image builder, since the partlabel may conflict with a real world part label | 16:08:48 |
matthewcroughan | of something else also plugged into the machine | 16:09:07 |
matthewcroughan | In reply to @lassulus:lassul.us"in the hooks" have you got a literal example? | 16:09:45 |
matthewcroughan | is it like config.disko.something._hooks ? | 16:09:54 |
matthewcroughan | Something that should never change is the ${device}-part1 ${device-part2} , so maybe I can just use that, since the kernel is responsible for keeping that stable | 16:10:44 |
matthewcroughan | * Something that should never change is the ${device}-part1 ${device-part2} , so maybe I can just use that, since the kernel is responsible for keeping that -part1 -part2 string stable | 16:10:57 |
lassulus | No example ready now. But just run env in a hook to see what's available | 16:28:18 |
matthewcroughan |
| 17:36:50 |
matthewcroughan | it starts at 2048 | 17:37:00 |
matthewcroughan | fdisk -x says First usable LBA: 34 | 17:37:18 |
matthewcroughan | So:
Didn't quite do what I was looking for | 17:37:37 |