1
0
mirror of https://github.com/gryf/mkinitramfs.git synced 2026-03-18 21:53:32 +01:00

Fix issue with empty script when dropbear is not enabled

This commit is contained in:
2026-02-18 15:08:24 +01:00
parent 578af86baa
commit 156722a62f

View File

@@ -390,7 +390,7 @@ class Initramfs:
fobj.write(SHEBANG)
fobj.write(DEPS % {'lvm': lvm, 'yubikey': yubikey,
'dropbear': dropbear})
fobj.write(COPY_DEPS % 'true' if self.conf.dropbear else 'false')
fobj.write(COPY_DEPS % ('true' if self.conf.dropbear else 'false'))
# extra crap, which seems to be needed, but is not direct dependency
for root, _, fnames in os.walk('/usr/lib'):