From 6a4b6420afc49224314d7d23601525ad10a370fd Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Fri, 7 Oct 2022 16:07:51 +0200 Subject: [PATCH] rhel8/9: make edge images properly sysroot.readonly=true Signed-off-by: Antonio Murdaca --- internal/distro/rhel8/pipelines.go | 1 + internal/distro/rhel9/pipelines.go | 1 + 2 files changed, 2 insertions(+) diff --git a/internal/distro/rhel8/pipelines.go b/internal/distro/rhel8/pipelines.go index d258ea7da28..655f4a575a2 100644 --- a/internal/distro/rhel8/pipelines.go +++ b/internal/distro/rhel8/pipelines.go @@ -938,6 +938,7 @@ func ostreeDeployPipeline( p.AddStage(osbuild.NewOSTreeConfigStage(ostreeConfigStageOptions(repoPath, false))) p.AddStage(osbuild.NewMkdirStage(efiMkdirStageOptions())) kernelOpts := osbuild.GenImageKernelOptions(pt) + kernelOpts = append(kernelOpts, "rw") p.AddStage(osbuild.NewOSTreeDeployStage( &osbuild.OSTreeDeployStageOptions{ OsName: osname, diff --git a/internal/distro/rhel9/pipelines.go b/internal/distro/rhel9/pipelines.go index f5d69d415a4..ac91f4a5bc4 100644 --- a/internal/distro/rhel9/pipelines.go +++ b/internal/distro/rhel9/pipelines.go @@ -934,6 +934,7 @@ func ostreeDeployPipeline( p.AddStage(osbuild.NewOSTreeConfigStage(ostreeConfigStageOptions(repoPath, false))) p.AddStage(osbuild.NewMkdirStage(efiMkdirStageOptions())) kernelOpts := osbuild.GenImageKernelOptions(pt) + kernelOpts = append(kernelOpts, "rw") p.AddStage(osbuild.NewOSTreeDeployStage( &osbuild.OSTreeDeployStageOptions{ OsName: osname,