Skip to content

feat(packages): 迁移官方 Alpine APK 并修复安装器复制错误 - #96

Merged
Leonmmcoset merged 6 commits into
mainfrom
feature/multilingual-website-docs
Nov 15, 2026
Merged

Leonmmcoset merged 6 commits into
mainfrom
feature/multilingual-website-docs

Conversation

@Leonmmcoset

Copy link
Copy Markdown
Collaborator

安装器复制系统证书符号链接时可能因 ext4 索引查找误判异步读取错误而停止写入,原始 -EROFS 又被终端安装器统一替换成 -EIO。本 PR 保留各安装阶段返回的真实错误码,并将 ReliefNT gitlink 更新到 317e964960fe22661ab456842900b7847d839b3c,修复内核中的错误分类。

本分支同时包含尚未合入 main 的官方 APK 迁移与 sudo 清理:

  • libmd、libbsd、util-linux、e2fsprogs 和 dosfstools 使用锁定的官方 Alpine APK,配套更新依赖、许可证、文件归属和升级迁移规则。
  • 保留旧库和工具路径的单向兼容链接;开发文件单独提取,运行镜像不混入构建专用开发根,并保留官方包的权限语义。
  • 现有 shadow 账户程序和 PAM 策略继续生效;基础系统保留 liblastlog2 所需的 SQLite 运行库,文档明确官方 lsblk 的 FSVER 探测限制。
  • sudo 保留 PAM 和 yescrypt 支持;默认直接调用 reliefaskpass,删除 sudod 自定义密码提示及中日重复翻译,同时兼容管理员保留的旧 askpass 路径。
  • 增加终端安装器工作进程的 EROFS 回归,确认错误码、错误文字和原始步骤详情均保留。

依赖:ReliefOSProject/ReliefNT#16。建议先合入内核 PR;若采用 squash/rebase 合并,应将本 PR 的 gitlink 更新到最终内核提交后再合入。

验证:

  • 使用现有 Installer ISO 在独立 QEMU 临时磁盘中复现复制证书链接失败。
  • ReliefNT 的 ext2/ext4、1 KiB/4 KiB 目录回归及 e2fsck 一致性检查通过;新增重试用例在修复前失败、修复后通过。
  • python3 tools/test_installer_swap_tty.py --output out/installer-ro-k2h2snjo/tui-regression 通过,覆盖真实 ncurses/PT​​Y 导航、分区和安装/更新流程及工作进程错误传递。
  • sudo 清理相关的 28 项离线更新回归、NLS 检查、签名 APK 打包和 yescrypt 认证探针已通过。
  • 两仓 git diff --check 通过。

完整 make test 的既有图标检查仍失败:settings shares artwork with reliefsettings。本次未重新运行完整套件,也未重建内核/Installer ISO或验证修复后 ISO 的完整安装、VMware及实体硬件。需要重新构建包含新内核的 Installer ISO 才能应用安装修复。

Use signed libbsd, dosfstools and e2fsprogs packages, isolate libbsd development inputs, preserve standard command paths and transfer ownership during upgrades.

Ship the real CA bundle in every profile and replace old empty console bundles through a versioned trust dependency. Update licenses, translations and migration checks.

Validation: rootfs and installer builds, 25 offline update regressions, QEMU console installation and login, signed CA migration and native ext2/ext4/FAT checks. Full make test remains blocked by the pre-existing settings/reliefsettings duplicate icon check.
Replace locally built util-linux commands, libraries and manuals with pinned signed Alpine APKs. Isolate official development inputs for exfatprogs, transfer package ownership during upgrades, and retain existing shadow tools and PAM policy.

Use upstream apk usermode for rootless staging and restore numeric owners and special permissions from the real package database when generating images. Document the original lsblk FSVER limitation in Chinese, English and Japanese.

Validation: rootfs and installer builds; native QEMU UEFI/BIOS GPT, FAT/ext, mount and su/runuser checks; 26 offline update regressions; incremental recovery and packaging fixtures. Full make test remains blocked by the pre-existing settings/reliefsettings duplicate artwork failure.
@Leonmmcoset
Leonmmcoset merged commit 154fec2 into main Nov 15, 2026
8 checks passed
@Leonmmcoset
Leonmmcoset deleted the feature/multilingual-website-docs branch November 15, 2026 14:24
@Leonmmcoset
Leonmmcoset restored the feature/multilingual-website-docs branch November 15, 2026 14:24
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.

2 participants