From 9c2e6fa7ff1e749935e92276ffb57e7c7c89b331 Mon Sep 17 00:00:00 2001 From: wang biao Date: Thu, 14 Nov 2024 14:07:05 +0800 Subject: [PATCH] load filesystem kernel module on host pc Change-Id: I96a097b88fd8b2634ac7c8ccb60b6b67465b8468 Signed-off-by: wang biao --- mic/rt_util.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mic/rt_util.py b/mic/rt_util.py index 67a021f..07122d6 100644 --- a/mic/rt_util.py +++ b/mic/rt_util.py @@ -27,7 +27,7 @@ import ctypes from mic import bootstrap, msger, kickstart from mic.conf import configmgr from mic.utils import errors, proxy -from mic.utils.fs_related import find_binary_path, makedirs +from mic.utils.fs_related import find_binary_path, makedirs, load_module from mic.chroot import setup_chrootenv, cleanup_chrootenv, ELF_arch from mic.plugin import pluginmgr @@ -147,6 +147,13 @@ def bootstrap_mic(argv=None): else: optlist = [] + #For Ubuntu 24.04, the kernel module is compressed with zstd, but the modprobe binary in tizen bootstrap + #don't support zstd compression. Need to load needed kernel module on host PC firstly. + for part in sorted(kickstart.get_partitions(cropts['ks']), + key=lambda p: p.mountpoint): + if part.fstype == "btrfs" or part.fstype == "f2fs": + load_module(part.fstype) + try: msger.info("Creating %s bootstrap ..." % distro) bsenv.create(cropts['repomd'], pkglist, optlist) -- 2.34.1