fix:能成功启动系统,进入脚本运行阶段#262
Conversation
- 在构建 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 运行库链接时避免覆盖既有文件,保留镜像构建阶段已经准备好的链接。
There was a problem hiding this comment.
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.
✨ Feature / 新功能
🚀 描述 (Description)
修改了启动流程的路径问题,现在系统能成功启动
🔗 关联 Issue