Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] rootfs.py: find .ko.zst kernel modules
@ 2022-05-31 15:10 Sean Anderson
  2022-06-01  6:39 ` [OE-core] " Luca Ceresoli
  2022-06-01  7:13 ` Luca Ceresoli
  0 siblings, 2 replies; 5+ messages in thread
From: Sean Anderson @ 2022-05-31 15:10 UTC (permalink / raw)
  To: openembedded-core
  Cc: Christophe Chapuis, Richard Purdie, Martin Jansa, Sean Anderson

With CONFIG_MODULE_COMPRESS_ZSTD enabled, kernel modules will have a
.ko.zst extension. This fixes depmod not being run.

Fixes: 1b696a45ddb ("rootfs.py: Add check for kernel modules before running depmod")
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
---

 meta/lib/oe/rootfs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
index 98cf3f244d4..61ccf369f12 100644
--- a/meta/lib/oe/rootfs.py
+++ b/meta/lib/oe/rootfs.py
@@ -311,7 +311,7 @@ class Rootfs(object, metaclass=ABCMeta):
     def _check_for_kernel_modules(self, modules_dir):
         for root, dirs, files in os.walk(modules_dir, topdown=True):
             for name in files:
-                found_ko = name.endswith((".ko", ".ko.gz", ".ko.xz"))
+                found_ko = name.endswith((".ko", ".ko.gz", ".ko.xz", ".ko.zst"))
                 if found_ko:
                     return found_ko
         return False
-- 
2.35.1.1320.gc452695387.dirty



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-06-03  9:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-31 15:10 [PATCH] rootfs.py: find .ko.zst kernel modules Sean Anderson
2022-06-01  6:39 ` [OE-core] " Luca Ceresoli
2022-06-01  7:13 ` Luca Ceresoli
2022-06-02 14:52   ` Sean Anderson
2022-06-03  9:22     ` Luca Ceresoli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox