@@ -369,15 +369,15 @@ func manifestForDiskImage(c *ManifestConfig, rng *rand.Rand) (*manifest.Manifest
369
369
}
370
370
371
371
img := image .NewBootcDiskImage (containerSource , buildContainerSource )
372
- img .Users = users .UsersFromBP (customizations .GetUsers ())
373
- img .Groups = users .GroupsFromBP (customizations .GetGroups ())
374
- img .SELinux = c .SourceInfo .SELinuxPolicy
375
- img .BuildSELinux = img .SELinux
372
+ img .OSCustomizations . Users = users .UsersFromBP (customizations .GetUsers ())
373
+ img .OSCustomizations . Groups = users .GroupsFromBP (customizations .GetGroups ())
374
+ img .OSCustomizations . SELinux = c .SourceInfo .SELinuxPolicy
375
+ img .OSCustomizations . BuildSELinux = img . OSCustomizations .SELinux
376
376
if c .BuildSourceInfo != nil {
377
- img .BuildSELinux = c .BuildSourceInfo .SELinuxPolicy
377
+ img .OSCustomizations . BuildSELinux = c .BuildSourceInfo .SELinuxPolicy
378
378
}
379
379
380
- img .KernelOptionsAppend = []string {
380
+ img .OSCustomizations . KernelOptionsAppend = []string {
381
381
"rw" ,
382
382
// TODO: Drop this as we expect kargs to come from the container image,
383
383
// xref https://github.com/CentOS/centos-bootc-layered/blob/main/cloud/usr/lib/bootc/install/05-cloud-kargs.toml
@@ -415,7 +415,7 @@ func manifestForDiskImage(c *ManifestConfig, rng *rand.Rand) (*manifest.Manifest
415
415
}
416
416
417
417
if kopts := customizations .GetKernel (); kopts != nil && kopts .Append != "" {
418
- img .KernelOptionsAppend = append (img .KernelOptionsAppend , kopts .Append )
418
+ img .OSCustomizations . KernelOptionsAppend = append (img . OSCustomizations .KernelOptionsAppend , kopts .Append )
419
419
}
420
420
421
421
pt , err := genPartitionTable (c , customizations , rng )
@@ -436,11 +436,11 @@ func manifestForDiskImage(c *ManifestConfig, rng *rand.Rand) (*manifest.Manifest
436
436
if err := blueprint .CheckFileCustomizationsPolicy (fc , policies .OstreeCustomFilesPolicies ); err != nil {
437
437
return nil , err
438
438
}
439
- img .Files , err = blueprint .FileCustomizationsToFsNodeFiles (fc )
439
+ img .OSCustomizations . Files , err = blueprint .FileCustomizationsToFsNodeFiles (fc )
440
440
if err != nil {
441
441
return nil , err
442
442
}
443
- img .Directories , err = blueprint .DirectoryCustomizationsToFsNodeDirectories (dc )
443
+ img .OSCustomizations . Directories , err = blueprint .DirectoryCustomizationsToFsNodeDirectories (dc )
444
444
if err != nil {
445
445
return nil , err
446
446
}
0 commit comments