nixos/limine: fix secure boot key generation when using impermanence (#514762)

This commit is contained in:
Masum Reza
2026-06-17 04:57:48 +00:00
committed by GitHub
@@ -559,7 +559,7 @@ def install_bootloader() -> None:
if config('secureBoot', 'enable'):
sbctl = os.path.join(str(config('secureBoot', 'sbctl')), 'bin', 'sbctl')
if not os.path.exists("/var/lib/sbctl") and config('secureBoot', 'autoGenerateKeys'):
if not os.path.exists("/var/lib/sbctl/keys") and config('secureBoot', 'autoGenerateKeys'):
print('auto generating keys')
try:
subprocess.run([sbctl, 'create-keys'])