Skip to content

Commit 38397ed

Browse files
authored
Merge pull request #2826 from SUSE/mokutil
Add mokutil to the kernel-development containers
2 parents 4a4061c + 012e639 commit 38397ed

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/bci_build/package/basecontainers.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from bci_build.os_version import _SUPPORTED_UNTIL_SLE
1818
from bci_build.os_version import OsVersion
1919
from bci_build.package import DOCKERFILE_RUN
20+
from bci_build.package import LOG_CLEAN
2021
from bci_build.package import OsContainer
2122
from bci_build.package import Package
2223
from bci_build.package import generate_disk_size_constraints
@@ -435,6 +436,11 @@ def _get_minimal_kwargs(os_version: OsVersion):
435436
+ (["tar"] if os_version == OsVersion.SP4 else [])
436437
+ (["suse-module-tools-scriptlets"] if os_version.is_sl16 else [])
437438
),
439+
custom_end=textwrap.dedent(f"""
440+
#!ArchExclusiveLine: x86_64 aarch64 ppc64le
441+
{DOCKERFILE_RUN} if zypper -n install mokutil; then zypper -n clean -a; fi
442+
{DOCKERFILE_RUN} {LOG_CLEAN}
443+
"""),
438444
extra_files={"_constraints": generate_disk_size_constraints(8)},
439445
)
440446
)

0 commit comments

Comments
 (0)