1 Star 0 Fork 37

nov1ce/lorax

forked from src-openEuler/lorax 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0001-ignore-the-dir-that-without-kernel-version.patch 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
朱春意 提交于 2019-11-06 19:41 . update code
From 71cc3cb1f2a166b364fb3beee79df7ae076c5eab Mon Sep 17 00:00:00 2001
From: liuxueping <liuxueping1@huawei.com>
Date: Sat, 29 Dec 2018 17:04:05 +0000
Subject: [PATCH] ignore the dir that without kernel version
---
src/pylorax/treebuilder.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/pylorax/treebuilder.py b/src/pylorax/treebuilder.py
index 0756804..64c3709 100644
--- a/src/pylorax/treebuilder.py
+++ b/src/pylorax/treebuilder.py
@@ -211,6 +211,9 @@ class RuntimeBuilder(object):
moddir = joinpaths(root, "lib/modules/")
for kernel in findkernels(root=root):
ksyms = joinpaths(root, "boot/System.map-%s" % kernel.version)
+ if not os.path.exists(ksyms):
+ logger.info("not exist %s. ignore and continue.", ksyms)
+ continue
logger.info("doing depmod and module-info for %s", kernel.version)
runcmd(["depmod", "-a", "-F", ksyms, "-b", root, kernel.version])
generate_module_info(moddir+kernel.version, outfile=moddir+"module-info")
--
1.8.3.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mynov1ce/lorax.git
git@gitee.com:mynov1ce/lorax.git
mynov1ce
lorax
lorax
master

搜索帮助