Instead of hard-coding "msdos1", determine this partition id dynamically based on the partition table type and the index of the partition that contains /boot/grub2, which normally is either a separate boot partition or the root partition. In order to be able to do so, set the index of each Partition when the partition information is read back via `sfdisk`. NB: partition indexes start at 1 for grub2. |
||
|---|---|---|
| .. | ||
| org.osbuild.noop | ||
| org.osbuild.qemu | ||
| org.osbuild.rawfs | ||
| org.osbuild.tar | ||
| osbuild | ||