Repository navigation
fix(installer): avoid SIGBUS and runtime space exhaustion during update checks - #122
Open
Leonmmcoset wants to merge 4 commits into
Open
Leonmmcoset wants to merge 4 commits into
Leonmmcoset wants to merge 4 commits into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题与效果
Installer 更新检查期间,BusyBox 或 Xorg 的合法文件映射可能因内核等待队列残留而收到 SIGBUS。更新 ReliefNT 至
ff2df8af1b0eca7a1ac0521c53c9d4e217f9cbeb,引入 ReliefOSProject/ReliefNT#41 的缺页重试修复。实际 QEMU 检查还复现了另一处失败:待验证的 APK 归档复制到
/tmp,耗尽 960MB 安装器运行时根文件系统的剩余空间。现在私有数据库和归档使用启动时挂载的/runtmpfs,并沿用事务结束时的清理流程。流程与实现
/run,同步安装文档。/run临时目录的说明,使翻译条目与中文源文一致。/tmp只读、目标系统只读情况下的签名预检查回归,验证目标内容不变且临时目录已清理。验证
tools/test_installer_update_packages.py:30 项通过,覆盖签名、损坏归档、依赖、只读检查、应用、重试和配置保留。测试使用 CI 镜像提取的 APK、BusyBox、kernel-bundle 和 Bash 可执行文件;新用例在修改前报mktemp: Read-only file system,修改后通过。error=0x4和 Xorgerror=0x14两类 SIGBUS 日志均被拒绝。tools/test_test_ownership.py:4 项通过。tools/test_documentation.py:Sphinx 5.3.0、7.2.6、9.2.0 三种版本全部通过,覆盖双手册、三语文档门户及链接检查。sh -n userland/storage/reliefos-apk-update、git diff --check:通过。Ready to update,导出的客体日志记录100% Update checks completed。串口无用户进程缺页信号,归档准备无No space left on device。测试 ISO 使用最近 CI 镜像的原始载荷,替换已修复内核、匹配的 initramfs/模块目录及更新脚本;运行时根保持 960MB。隔离测试盘已加入该 CI 构建的公钥,使其与签名仓库配套。Review update标签;通过真实完成页截图和客体日志核验检查成功后,终止了该等待脚本并导出日志。未执行确认后的落盘更新,不把这次检查称为完整 GUI 更新测试通过。用户报告的平台是 VMware、4GB 内存;本环境无法运行 VMware,尚未验证其实际实例,也不能确认内核等待问题是该实例唯一的原因。
兼容性与发布影响
ReliefOSProject/ReliefNT#41 已合并,gitlink 指向其 main 合并提交。不改变用户态 ABI;原生模块内容身份按现有规则更新,生产构建须一起生成内核、模块和 initramfs。更新仍使用已安装系统的信任密钥验证签名,检查阶段不写目标系统。