mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Allow for secure-boot efivars directory having SecureBoot-xxx files, not directories with a data file
This commit is contained in:
parent
688ce681f0
commit
eeeec9a325
1 changed files with 4 additions and 1 deletions
|
@ -66,7 +66,10 @@ def config():
|
|||
def __secure_boot(efivars_dir):
|
||||
"""Detect if secure-boot is enabled."""
|
||||
enabled = False
|
||||
sboot = glob.glob(os.path.join(efivars_dir, "SecureBoot-*/data"))
|
||||
if "efivars" == os.path.basename(efivars_dir):
|
||||
sboot = glob.glob(os.path.join(efivars_dir, "SecureBoot-*"))
|
||||
else:
|
||||
sboot = glob.glob(os.path.join(efivars_dir, "SecureBoot-*/data"))
|
||||
if len(sboot) == 1:
|
||||
# The minion is usually running as a privileged user, but is
|
||||
# not the case for the master. Seems that the master can also
|
||||
|
|
Loading…
Add table
Reference in a new issue