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
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)