@@ -19,6 +19,7 @@ import (
19
19
"github.com/osbuild/images/pkg/customizations/kickstart"
20
20
"github.com/osbuild/images/pkg/customizations/users"
21
21
"github.com/osbuild/images/pkg/disk"
22
+ "github.com/osbuild/images/pkg/disk/partition"
22
23
"github.com/osbuild/images/pkg/image"
23
24
"github.com/osbuild/images/pkg/manifest"
24
25
"github.com/osbuild/images/pkg/osbuild"
@@ -132,10 +133,10 @@ func checkMountpoints(filesystems []blueprint.FilesystemCustomization, policy *p
132
133
return nil
133
134
}
134
135
135
- func checkFilesystemCustomizations (fsCustomizations []blueprint.FilesystemCustomization , ptmode disk .PartitioningMode ) error {
136
+ func checkFilesystemCustomizations (fsCustomizations []blueprint.FilesystemCustomization , ptmode partition .PartitioningMode ) error {
136
137
var policy * pathpolicy.PathPolicies
137
138
switch ptmode {
138
- case disk .BtrfsPartitioningMode :
139
+ case partition .BtrfsPartitioningMode :
139
140
// btrfs subvolumes are not supported at build time yet, so we only
140
141
// allow / and /boot to be customized when building a btrfs disk (the
141
142
// minimal policy)
@@ -327,9 +328,9 @@ func genPartitionTableFsCust(c *ManifestConfig, fsCust []blueprint.FilesystemCus
327
328
return nil , fmt .Errorf ("pipelines: no partition tables defined for %s" , c .Architecture )
328
329
}
329
330
330
- partitioningMode := disk .RawPartitioningMode
331
+ partitioningMode := partition .RawPartitioningMode
331
332
if c .RootFSType == "btrfs" {
332
- partitioningMode = disk .BtrfsPartitioningMode
333
+ partitioningMode = partition .BtrfsPartitioningMode
333
334
}
334
335
if err := checkFilesystemCustomizations (fsCust , partitioningMode ); err != nil {
335
336
return nil , err
@@ -523,7 +524,7 @@ func manifestForISO(c *ManifestConfig, rng *rand.Rand) (*manifest.Manifest, erro
523
524
if c .Config != nil {
524
525
customizations = c .Config .Customizations
525
526
}
526
- img .FIPS = customizations .GetFIPS ()
527
+ img .InstallerCustomizations . FIPS = customizations .GetFIPS ()
527
528
img .Kickstart , err = kickstart .New (customizations )
528
529
if err != nil {
529
530
return nil , err
@@ -539,10 +540,10 @@ func manifestForISO(c *ManifestConfig, rng *rand.Rand) (*manifest.Manifest, erro
539
540
return nil , err
540
541
}
541
542
if instCust != nil && instCust .Modules != nil {
542
- img .AdditionalAnacondaModules = append (img .AdditionalAnacondaModules , instCust .Modules .Enable ... )
543
- img .DisabledAnacondaModules = append (img .DisabledAnacondaModules , instCust .Modules .Disable ... )
543
+ img .InstallerCustomizations . EnabledAnacondaModules = append (img .InstallerCustomizations . EnabledAnacondaModules , instCust .Modules .Enable ... )
544
+ img .InstallerCustomizations . DisabledAnacondaModules = append (img . InstallerCustomizations .DisabledAnacondaModules , instCust .Modules .Disable ... )
544
545
}
545
- img .AdditionalAnacondaModules = append (img .AdditionalAnacondaModules ,
546
+ img .InstallerCustomizations . EnabledAnacondaModules = append (img .InstallerCustomizations . EnabledAnacondaModules ,
546
547
anaconda .ModuleUsers ,
547
548
anaconda .ModuleServices ,
548
549
anaconda .ModuleSecurity ,
@@ -551,7 +552,7 @@ func manifestForISO(c *ManifestConfig, rng *rand.Rand) (*manifest.Manifest, erro
551
552
img .Kickstart .OSTree = & kickstart.OSTree {
552
553
OSName : "default" ,
553
554
}
554
- img .UseRHELLoraxTemplates = needsRHELLoraxTemplates (c .SourceInfo .OSRelease )
555
+ img .InstallerCustomizations . UseRHELLoraxTemplates = needsRHELLoraxTemplates (c .SourceInfo .OSRelease )
555
556
556
557
switch c .Architecture {
557
558
case arch .ARCH_X86_64 :
@@ -562,7 +563,7 @@ func manifestForISO(c *ManifestConfig, rng *rand.Rand) (*manifest.Manifest, erro
562
563
BIOS : true ,
563
564
UEFIVendor : c .SourceInfo .UEFIVendor ,
564
565
}
565
- img .ISOBoot = manifest .Grub2ISOBoot
566
+ img .InstallerCustomizations . ISOBoot = manifest .Grub2ISOBoot
566
567
case arch .ARCH_AARCH64 :
567
568
// aarch64 always uses UEFI, so let's enforce the vendor
568
569
if c .SourceInfo .UEFIVendor == "" {
@@ -599,7 +600,7 @@ func manifestForISO(c *ManifestConfig, rng *rand.Rand) (*manifest.Manifest, erro
599
600
return nil , fmt .Errorf ("unsupported architecture %v" , c .Architecture )
600
601
}
601
602
// see https://github.com/osbuild/bootc-image-builder/issues/733
602
- img .RootfsType = manifest .SquashfsRootfs
603
+ img .InstallerCustomizations . ISORootfsType = manifest .SquashfsRootfs
603
604
img .Filename = "install.iso"
604
605
605
606
installRootfsType , err := disk .NewFSType (c .RootFSType )
0 commit comments