osbuild: Change QEMUPartition "Type" to match osbuild

Partition type, as defined in osbuild qemu assembler, is of type string
because it is either UUID or identifier. See here for details:
162797f206/assemblers/org.osbuild.qemu (L88)

Change type of the "Type" struct member to match the definition in
osbuild. This patch is needed for ppc64le support.
This commit is contained in:
Martin Sehnoutka 2020-06-05 09:42:57 +02:00 committed by Tom Gundersen
parent 38e4fe8781
commit 673e967b2d
4 changed files with 4 additions and 9 deletions

View file

@ -635,7 +635,6 @@ func (r *imageType) selinuxStageOptions() *osbuild.SELinuxStageOptions {
func qemuAssembler(format string, filename string, uefi bool, size uint64) *osbuild.Assembler {
var options osbuild.QEMUAssemblerOptions
if uefi {
fstype := uuid.MustParse("C12A7328-F81F-11D2-BA4B-00A0C93EC93B")
options = osbuild.QEMUAssemblerOptions{
Format: format,
Filename: filename,
@ -646,7 +645,7 @@ func qemuAssembler(format string, filename string, uefi bool, size uint64) *osbu
{
Start: 2048,
Size: 972800,
Type: &fstype,
Type: "c12a7328-f81f-11d2-ba4b-00a0c93ec93b",
UUID: "02C1E068-1D2F-4DA3-91FD-8DD76A955C9D",
Filesystem: osbuild.QEMUFilesystem{
Type: "vfat",

View file

@ -481,7 +481,6 @@ func (t *imageType) selinuxStageOptions() *osbuild.SELinuxStageOptions {
func qemuAssembler(format string, filename string, uefi bool, imageOptions distro.ImageOptions) *osbuild.Assembler {
var options osbuild.QEMUAssemblerOptions
if uefi {
fstype := uuid.MustParse("C12A7328-F81F-11D2-BA4B-00A0C93EC93B")
options = osbuild.QEMUAssemblerOptions{
Format: format,
Filename: filename,
@ -492,7 +491,7 @@ func qemuAssembler(format string, filename string, uefi bool, imageOptions distr
{
Start: 2048,
Size: 972800,
Type: &fstype,
Type: "C12A7328-F81F-11D2-BA4B-00A0C93EC93B",
UUID: "02C1E068-1D2F-4DA3-91FD-8DD76A955C9D",
Filesystem: osbuild.QEMUFilesystem{
Type: "vfat",

View file

@ -488,7 +488,6 @@ func (t *imageType) selinuxStageOptions() *osbuild.SELinuxStageOptions {
func qemuAssembler(format string, filename string, uefi bool, imageOptions distro.ImageOptions) *osbuild.Assembler {
var options osbuild.QEMUAssemblerOptions
if uefi {
fstype := uuid.MustParse("C12A7328-F81F-11D2-BA4B-00A0C93EC93B")
options = osbuild.QEMUAssemblerOptions{
Format: format,
Filename: filename,
@ -499,7 +498,7 @@ func qemuAssembler(format string, filename string, uefi bool, imageOptions distr
{
Start: 2048,
Size: 972800,
Type: &fstype,
Type: "C12A7328-F81F-11D2-BA4B-00A0C93EC93B",
Filesystem: osbuild.QEMUFilesystem{
Type: "vfat",
UUID: "46BB-8120",