26 lines
805 B
Diff
26 lines
805 B
Diff
From 67d146999a2356dd445cc4c6532e052596cae4db Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
|
|
Date: Tue, 21 Jun 2022 18:50:35 +0200
|
|
Subject: [PATCH] Don't attempt to add frozen python modules to initramfs
|
|
|
|
---
|
|
dracut/python-deps | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/dracut/python-deps b/dracut/python-deps
|
|
index cc6138a5e4..587b44a46f 100644
|
|
--- a/dracut/python-deps
|
|
+++ b/dracut/python-deps
|
|
@@ -70,6 +70,10 @@ except AttributeError:
|
|
while scripts:
|
|
script = scripts.pop()
|
|
|
|
+ if script == 'frozen':
|
|
+ # https://docs.python.org/3.11/whatsnew/3.11.html#frozen-imports-static-code-objects
|
|
+ continue
|
|
+
|
|
finder = ModuleFinder()
|
|
finder.run_script(script) # parse the script
|
|
for mod in finder.modules.values():
|
|
--
|
|
2.23.0
|