TheJulia | a 512 byte system will just think the 4096 byte system's image is junk | 00:00 |
---|---|---|
TheJulia | because it won't understand it | 00:00 |
clarkb | sgdisk -n takes an offset so in theory we could set that to -n 1K and it would do the right thing? | 00:00 |
TheJulia | all it *will* see is the PMBR record at the very first 512 bytes | 00:00 |
clarkb | ya I was worried about this since MBR/GPT stuff is super low level bootstrapping and things need to go where they are expected | 00:01 |
clarkb | oh wait -n is for partitions in the gpt table not for the gpt record itself | 00:01 |
TheJulia | that *might* work if there is mialignment further up | 00:01 |
TheJulia | for boundry alignment, but I'm hoping that is a later or non-existent problem :) | 00:01 |
clarkb | ok ya LBA0 is a protected MBR table that can't be used (bytes 0-511) then if you are 512 byte block sized LBA1 starts at 512. If you are 4096 byte block size then LBA1 starts at 4096. LBA1 is where you look for GPT | 00:04 |
clarkb | a really hacky thing would be to write out a partition table in 512-4095 and in 4096-X if possible | 00:05 |
clarkb | then have it work in either system | 00:05 |
clarkb | but I don't know how big GPT partition table entries are and that would limit you I expect even if it did fit | 00:06 |
clarkb | another appraoch would be to have a tool that can convert the disk from one to the other | 00:07 |
clarkb | then you don't need an entirely separate image build you just doctor the image to convert if necessary | 00:07 |
stevebaker[m] | I'm going to be proposing changes to make dib that tool, taking any dib created image and writing it to a new block device layout with only the necessary other changes (bootloader, selinux relabel) | 00:16 |
opendevreview | Julia Kreger proposed openstack/diskimage-builder master: WIP: 4k Block device support https://review.opendev.org/c/openstack/diskimage-builder/+/927550 | 00:17 |
TheJulia | well,not looking great with local testing, but I'm running low on spoons for the day | 00:26 |
TheJulia | stoopid vaccine fog | 00:26 |
TheJulia | it may be entirely possible, as well, that my test VM doesn't properly grok the difference | 00:27 |
TheJulia | ... but the image is right :( | 00:27 |
opendevreview | Steve Baker proposed openstack/diskimage-builder master: Refactor selinux-fixfiles-restore into its own element https://review.opendev.org/c/openstack/diskimage-builder/+/927552 | 00:31 |
TheJulia | okay, fixing my device, I can see the efi partition from e2dk | 00:36 |
TheJulia | I guess a fresh brain in the morning | 00:38 |
opendevreview | Steve Baker proposed openstack/diskimage-builder master: Add DIB_SKIP_GRUB_PACKAGE_INSTALL for bootloader https://review.opendev.org/c/openstack/diskimage-builder/+/927559 | 02:05 |
opendevreview | Steve Baker proposed openstack/diskimage-builder master: Add DIB_SKIP_GRUB_PACKAGE_INSTALL for bootloader https://review.opendev.org/c/openstack/diskimage-builder/+/927559 | 02:45 |
opendevreview | Steve Baker proposed openstack/diskimage-builder master: WIP Optionally use guestfish for extract-image https://review.opendev.org/c/openstack/diskimage-builder/+/927561 | 02:45 |
TheJulia | ahh yeah, existing extract image would need to grok a source block size | 13:49 |
opendevreview | Julia Kreger proposed openstack/diskimage-builder master: WIP: 4k Block device support https://review.opendev.org/c/openstack/diskimage-builder/+/927550 | 15:54 |
opendevreview | Julia Kreger proposed openstack/diskimage-builder master: WIP: 4k Block device support https://review.opendev.org/c/openstack/diskimage-builder/+/927550 | 16:29 |
opendevreview | Julia Kreger proposed openstack/diskimage-builder master: 4k Block device support https://review.opendev.org/c/openstack/diskimage-builder/+/927550 | 20:31 |
TheJulia | Minimally tested, but does work \o/ | 20:39 |
TheJulia | I'm thinking it might be important to highlight/stress just how resulting images will be incompatible, at least more, thoughts welcome! | 20:40 |
TheJulia | NobodyCam: ^^^ | 20:43 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!