Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
12
Star
20
Fork
15
openEuler
/
SBC-sig
Code
Issues
11
Pull Requests
0
Wiki
Insights
Pipelines
Service
JavaDoc
PHPDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
Don’t show this again
30
fix: 修复 openEuler 22.03 LTS 构建错误
Merged
chainsx:master
openEuler:master
chainsx
create on 2025-08-22 12:49
Clone/Download
HTTPS
SSH
Copy
Email Patch
Diff file
## 修复 openEuler 22.03 LTS 构建错误 ### 问题描述 在 openEuler 22.03 LTS 上 `dnf` 软件包的依赖为: ``` dnf-data-4.10.0-15.oe2203.noarch libreport-filesystem-2.15.2-1.oe2203.noarch ``` 未包含 `filesystem` 导致未创建 `/dev`、`/sys`、`/proc` 等目录, 从而导致脚本中的挂载 `/dev` 出错(https://gitee.com/openeuler/SBC-sig/blob/master/scripts/rockchip/build_rootfs.sh#L248) ### 相关日志 ``` Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: dnf-data noarch 4.10.0-15.oe2203 update-tmp 23 k Installing dependencies: libreport-filesystem noarch 2.15.2-1.oe2203 OS-tmp 9.0 k Transaction Summary ================================================================================ Install 2 Packages Total download size: 32 k Installed size: 27 k Downloading Packages: (1/2): libreport-filesystem-2.15.2-1.oe2203.noa 21 kB/s | 9.0 kB 00:00 (2/2): dnf-data-4.10.0-15.oe2203.noarch.rpm 34 kB/s | 23 kB 00:00 -------------------------------------------------------------------------------- Total 48 kB/s | 32 kB 00:00 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : libreport-filesystem-2.15.2-1.oe2203.noarch 1/2 Installing : dnf-data-4.10.0-15.oe2203.noarch 2/2 Verifying : libreport-filesystem-2.15.2-1.oe2203.noarch 1/2 Verifying : dnf-data-4.10.0-15.oe2203.noarch 2/2 Installed: dnf-data-4.10.0-15.oe2203.noarch libreport-filesystem-2.15.2-1.oe2203.noarch Complete! mount: /work/build/rootfs/dev: mount point does not exist. ``` ### 问题分析及解决方法 在 openEuler 22.03 LTS SP3 上 `dnf` 软件包的依赖包含 `filesystem`,所以能正常创建相关目录。 经过测试,在 openEuler 22.03 LTS 上,仅安装 `filesystem` 报错如下: ``` Installed: basesystem-12-2.oe2203.noarch bash-5.1.8-6.oe2203.aarch64 dnf-data-4.10.0-15.oe2203.noarch filesystem-3.16-4.oe2203.aarch64 glibc-2.34-149.oe2203.aarch64 glibc-common-2.34-149.oe2203.aarch64 libreport-filesystem-2.15.2-1.oe2203.noarch libselinux-3.3-5.oe2203.aarch64 libsepol-3.3-6.oe2203.aarch64 ncurses-base-6.3-8.oe2203.noarch ncurses-libs-6.3-8.oe2203.aarch64 chroot: failed to run command 'dnf': No such file or directory ``` 仅安装 `filesystem` 软件包会出现无法找到 `dnf` 命令的错误,需要安装 `yum`,同时 `filesystem` 也为 `yum` 的依赖;`dnf` 和 `yum` 在基本软件包列表 `rpmlist` 中 (https://gitee.com/chainsx/SBC-sig/blob/test/scripts/rockchip/configs/rpmlist),所以在构建过程中先行安装 `yum` 软件包。 修复后运行构建成功,测试构建参数如下: ``` sudo bash build-image-docker.sh \ --board firefly-itx-3588j \ -d https://repo.openeuler.org/openEuler-22.03-LTS/docker_img/aarch64/openEuler-docker.aarch64.tar.xz \ -n openEuler-22.03-RK3588-Firefly-ITX-3588J-aarch64-alpha1 \ -k https://gitee.com/openeuler/rockchip-kernel.git \ -b openEuler-22.03-LTS-RK3588 \ -c openeuler_rk3588_defconfig \ -r https://gitee.com/src-openeuler/openEuler-repos/raw/openEuler-22.03-LTS/generic.repo \ -s xfce ``` 测试构建成功日志:https://github.com/chainsx/openEuler-SBC-build/actions/runs/17183878126/job/48750188680 相关 issue: https://gitee.com/openeuler/SBC-sig/issues/ICO418?from=project-issue
This pull request needs to pass some approval items
Type
Assign personnel
Status
Reviewer
Wayne Ren
woqidaideshi
emancipator
openeuler-ci-bot
Jimmie
tideao
huangyan_jrlc
Completed
(0/0 )
Tester
openeuler-ci-bot
Completed
(0/0 )
How to merge Pull Request
git checkout master
git pull https://gitee.com/chainsx/SBC-sig.git master
git push origin master
Comments
7
Commits
1
Files
1
Checks
Code problems
0
Bulk operation
Expand
Collapse
Reviewer
Code Owner
Reviewer
Jimmie
jianminw
Wayne Ren
vonhust
woqidaideshi
woqidaideshi
tideao
tideao
emancipator
emancipator
chainsx
chainsx
huangyan_jrlc
huangyan_jrlc
openeuler-ci-bot
openeuler-ci-bot
No Setting
Min number
0
Tester
Jimmie
jianminw
Wayne Ren
vonhust
woqidaideshi
woqidaideshi
tideao
tideao
emancipator
emancipator
chainsx
chainsx
huangyan_jrlc
huangyan_jrlc
openeuler-ci-bot
openeuler-ci-bot
No Setting
Min number
0
Priority
Not specified
Serious
Main
Secondary
Unimportant
Label
openeuler-cla/yes
lgtm
approved
sig/sig-SBC
Link Issue
ICO418
按照教程编译itx3588j镜像失败
Successfully merged pull requests will close issues
Milestone
No related milestones
Participators
(3)
1
https://gitee.com/openeuler/SBC-sig.git
git@gitee.com:openeuler/SBC-sig.git
openeuler
SBC-sig
SBC-sig
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register