From e797c1136fdb04038c3f3c985f23ecd377fd39a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Sch=C3=A4fer?= Date: Fri, 16 Jan 2026 08:04:53 +0100 Subject: [PATCH] Add missing base class method The BootLoaderInstallBase class was missing the default implementation for the set_disk_password API --- kiwi/bootloader/install/base.py | 8 ++++++++ test/unit/bootloader/install/base_test.py | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/kiwi/bootloader/install/base.py b/kiwi/bootloader/install/base.py index 6a45e54e..3c6ac2bc 100644 --- a/kiwi/bootloader/install/base.py +++ b/kiwi/bootloader/install/base.py @@ -69,3 +69,11 @@ class BootLoaderInstallBase: Implementation in specialized bootloader install class required """ raise NotImplementedError + + def set_disk_password(self, password: str): + """ + Include crypto mount credentials + + Implementation in specialized bootloader install class optional + """ + pass diff --git a/test/unit/bootloader/install/base_test.py b/test/unit/bootloader/install/base_test.py index 597f7ba1..56860025 100644 --- a/test/unit/bootloader/install/base_test.py +++ b/test/unit/bootloader/install/base_test.py @@ -24,3 +24,7 @@ class TestBootLoaderInstallBase: def test_secure_boot_install(self): with raises(NotImplementedError): self.bootloader.secure_boot_install() + + def test_set_disk_password(self): + # just pass + self.bootloader.set_disk_password('some')