From 38b6b9cdcfaf007488d5a8386db30d443936f4e1 Mon Sep 17 00:00:00 2001 From: Irene Diez Date: Mon, 13 Feb 2023 14:15:17 +0100 Subject: [PATCH] distro/rhel8+9: allow User/Group customizations on edge-si Signed-off-by: Irene Diez --- internal/distro/rhel8/imagetype.go | 2 +- internal/distro/rhel9/imagetype.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/distro/rhel8/imagetype.go b/internal/distro/rhel8/imagetype.go index 833ef0595..13c968c80 100644 --- a/internal/distro/rhel8/imagetype.go +++ b/internal/distro/rhel8/imagetype.go @@ -364,7 +364,7 @@ func (t *imageType) checkOptions(customizations *blueprint.Customizations, optio } if t.name == "edge-simplified-installer" { - allowed := []string{"InstallationDevice", "FDO"} + allowed := []string{"InstallationDevice", "FDO", "User", "Group"} if err := customizations.CheckAllowed(allowed...); err != nil { return fmt.Errorf("unsupported blueprint customizations found for boot ISO image type %q: (allowed: %s)", t.name, strings.Join(allowed, ", ")) } diff --git a/internal/distro/rhel9/imagetype.go b/internal/distro/rhel9/imagetype.go index c5654c1a2..352f05659 100644 --- a/internal/distro/rhel9/imagetype.go +++ b/internal/distro/rhel9/imagetype.go @@ -333,7 +333,7 @@ func (t *imageType) checkOptions(customizations *blueprint.Customizations, optio } if t.name == "edge-simplified-installer" { - allowed := []string{"InstallationDevice", "FDO", "Ignition", "Kernel"} + allowed := []string{"InstallationDevice", "FDO", "Ignition", "Kernel", "User", "Group"} if err := customizations.CheckAllowed(allowed...); err != nil { return fmt.Errorf("unsupported blueprint customizations found for boot ISO image type %q: (allowed: %s)", t.name, strings.Join(allowed, ", ")) }