Friday, 2024-08-30

TheJuliaa 512 byte system will just think the 4096 byte system's image is junk00:00
TheJuliabecause it won't understand it00:00
clarkbsgdisk -n takes an offset so in theory we could set that to -n 1K and it would do the right thing?00:00
TheJuliaall it *will* see is the PMBR record at the very first 512 bytes00:00
clarkbya I was worried about this since MBR/GPT stuff is super low level bootstrapping and things need to go where they are expected00:01
clarkboh wait -n is for partitions in the gpt table not for the gpt record itself00:01
TheJuliathat *might* work if there is mialignment further up00:01
TheJuliafor boundry alignment, but I'm hoping that is a later or non-existent problem :)00:01
clarkbok 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 GPT00:04
clarkba really hacky thing would be to write out a partition table in 512-4095 and in 4096-X if possible00:05
clarkbthen have it work in either system00:05
clarkbbut I don't know how big GPT partition table entries are and that would limit you I expect even if it did fit00:06
clarkbanother appraoch would be to have a tool that can convert the disk from one to the other00:07
clarkbthen you don't need an entirely separate image build you just doctor the image to convert if necessary00: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
opendevreviewJulia Kreger proposed openstack/diskimage-builder master: WIP: 4k Block device support  https://review.opendev.org/c/openstack/diskimage-builder/+/92755000:17
TheJuliawell,not looking great with local testing, but I'm running low on spoons for the day00:26
TheJuliastoopid vaccine fog00:26
TheJuliait may be entirely possible, as well, that my test VM doesn't properly grok the difference00:27
TheJulia... but the image is right :(00:27
opendevreviewSteve Baker proposed openstack/diskimage-builder master: Refactor selinux-fixfiles-restore into its own element  https://review.opendev.org/c/openstack/diskimage-builder/+/92755200:31
TheJuliaokay, fixing my device, I can see the efi partition from e2dk00:36
TheJuliaI guess a fresh brain in the morning00:38
opendevreviewSteve Baker proposed openstack/diskimage-builder master: Add DIB_SKIP_GRUB_PACKAGE_INSTALL for bootloader  https://review.opendev.org/c/openstack/diskimage-builder/+/92755902:05
opendevreviewSteve Baker proposed openstack/diskimage-builder master: Add DIB_SKIP_GRUB_PACKAGE_INSTALL for bootloader  https://review.opendev.org/c/openstack/diskimage-builder/+/92755902:45
opendevreviewSteve Baker proposed openstack/diskimage-builder master: WIP Optionally use guestfish for extract-image  https://review.opendev.org/c/openstack/diskimage-builder/+/92756102:45
TheJuliaahh yeah, existing extract image would need to grok a source block size13:49
opendevreviewJulia Kreger proposed openstack/diskimage-builder master: WIP: 4k Block device support  https://review.opendev.org/c/openstack/diskimage-builder/+/92755015:54
opendevreviewJulia Kreger proposed openstack/diskimage-builder master: WIP: 4k Block device support  https://review.opendev.org/c/openstack/diskimage-builder/+/92755016:29
opendevreviewJulia Kreger proposed openstack/diskimage-builder master: 4k Block device support  https://review.opendev.org/c/openstack/diskimage-builder/+/92755020:31
TheJuliaMinimally tested, but does work \o/20:39
TheJuliaI'm thinking it might be important to highlight/stress just how resulting images will be incompatible, at least more, thoughts welcome!20:40
TheJuliaNobodyCam: ^^^20:43

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!