Do a better panic on uki with secureboot disabled (#326)

This commit is contained in:
Itxaka 2024-05-30 07:35:32 +00:00 committed by GitHub
parent 50b5d3e7a5
commit a956ab361d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -157,7 +157,10 @@ func (s *State) UKIMountBaseSystem(g *herd.Graph) error {
// Now that we have all the mounts, check if we got secureboot enabled
if !efi.GetSecureBoot() && len(internalUtils.ReadCMDLineArg("rd.immucore.securebootdisabled")) == 0 {
internalUtils.Log.Panic().Msg("Secure boot is not enabled")
internalUtils.Log.Error().Msg("Secure boot is not enabled. Aborting boot.")
// Sleep forever.
// We dont want to exit and print panics or kernel panic, so we print our message and wait for the user to ctrl+alt+del
select {}
}
return err
},