| 11 Aug 2024 |
matthewcroughan | I managed to end up with the following error on bcachefs creation, maybe the diskoScript is too fast?
starting version 1.9: disk_accounting_v2 opts=compression=lz4
initializing new filesystem
going read-write
initializing freespace
IO error: Operation not permitted
| 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.us You can override the partition Labels. Also some attributes are available in the hooks like the device I 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 You can override the partition Labels. Also some attributes are available in the hooks like the device "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 | lassulus:
Device Start End Sectors Type-UUID UUID Name Attrs
/dev/sda1 2048 8191 6144 0FC63DAF-8483-4772-8E79-3D69D8477DE4 AF2745B3-D3AB-4956-99D2-07CB46646F95 bl2
| 17:36:50 |
matthewcroughan | it starts at 2048 | 17:37:00 |
matthewcroughan | fdisk -x says First usable LBA: 34 | 17:37:18 |
matthewcroughan | So:
content = {
type = "gpt";
partitions = {
bl2 = {
start = "34";
end = "8191";
Didn't quite do what I was looking for
| 17:37:37 |
matthewcroughan | Is that supposed to have worked, or am I misunderstanding something? | 17:37:46 |