Skip to content

fix:能成功启动系统,进入脚本运行阶段#262

Merged
a6d9a6m merged 7 commits into
mainfrom
feat/oscomp-auto-run-shutdown
Jun 9, 2026
Merged

fix:能成功启动系统,进入脚本运行阶段#262
a6d9a6m merged 7 commits into
mainfrom
feat/oscomp-auto-run-shutdown

Conversation

@a6d9a6m

@a6d9a6m a6d9a6m commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

✨ Feature / 新功能

🚀 描述 (Description)

修改了启动流程的路径问题,现在系统能成功启动

🔗 关联 Issue

a6d9a6m added 2 commits June 8, 2026 16:16
- 在构建 ext4 镜像时预创建 /dev、/proc、/sys、/tmp、/tests、/lib 和 /lib64,并补齐 glibc 运行库符号链接,减少启动阶段对根文件系统写入的依赖。

- 调整 mkfs.ext4 参数,固定 inode 大小并关闭 journal、resize_inode、dir_index 和 metadata_csum 等特性,降低内核 ext4 写路径与额外 ext4 特性的耦合。

- 支持读取 ext4 fast symlink,修复短符号链接目标内联存储在 inode i_block 时无法正确解析的问题。

- 统一 uname 与 /sys/kernel/{version,osrelease} 的版本信息,对齐评测环境期望的 Linux 5.10.0 标识。

- rcS 创建 glibc 运行库链接时避免覆盖既有文件,保留镜像构建阶段已经准备好的链接。

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces support for conditional execution of musl and glibc test suites in the startup scripts, pre-creates essential system directories and glibc symlinks in the build script, updates UTS namespace constants to match standard Linux values, and adds support for reading ext4 fast symlinks. The review feedback highlights a boundary condition error and an inaccurate blocks_count check in the ext4 fast symlink implementation, as well as potential failures in the shell scripts when checking for the existence of broken symlinks using only [ -e ... ].

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread os/src/fs/ext4/inode.rs
Comment thread data/loongarch_musl/etc/init.d/rcS Outdated
Comment thread data/risc-v_musl/etc/init.d/rcS Outdated
@a6d9a6m a6d9a6m merged commit 27b58f8 into main Jun 9, 2026
1 check passed
@a6d9a6m a6d9a6m deleted the feat/oscomp-auto-run-shutdown branch June 9, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant