mirror of
https://github.com/kairos-io/immucore.git
synced 2025-04-28 03:10:48 +00:00
Do a better panic on uki with secureboot disabled (#326)
This commit is contained in:
parent
50b5d3e7a5
commit
a956ab361d
@ -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
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user