Skip to content

Commit f7b394b

Browse files
authored
OSModifier: Restore SELinux config file update for UKI-based boot (#266)
<!-- Description: Please provide a summary of the changes and the motivation behind them. --> This PR restores a missing call to UpdateSELinuxModeInConfigFile() in the SELinux setup logic. It was unintentionally removed earlier. --- ### **Checklist** - [ ] Tests added/updated - [ ] Documentation updated (if needed) - [ ] Code conforms to style guidelines
1 parent f326995 commit f7b394b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

toolkit/tools/pkg/osmodifierlib/modifierutils.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,11 @@ func handleSELinux(selinuxMode imagecustomizerapi.SELinuxMode, bootCustomizer *i
179179
return err
180180
}
181181

182+
err = imagecustomizerlib.UpdateSELinuxModeInConfigFile(selinuxMode, dummyChroot)
183+
if err != nil {
184+
return fmt.Errorf("failed to update /etc/selinux/config:\n%w", err)
185+
}
186+
182187
// No need to set SELinux labels here as in trident there is reset labels at the end
183188
return nil
184189
}

0 commit comments

Comments
 (0)