diff --git a/README.en.md b/README.en.md index 42fe769..387f820 100644 --- a/README.en.md +++ b/README.en.md @@ -40,6 +40,17 @@ The ModAVD release script releases the module as part of the package release; Re For a standalone release artifact (for example to recheck on a device), you can still run the build manually on `main` (Actions → Build KernelSU LKM → Run workflow) to get the `verified-ksu-lkm-` artifact, kept for 14 days. +## Upgrading existing instances + +Upgrade to a ModAVD release that pins the new KernelSU module. Shut down any instances using KernelSU normally, then download the new components from **PC Check** or run `modavd components fetch --kernelsu`. + +- From the CLI, run `modavd ksu install` for each affected instance to rebuild its ramdisk. +- In the Manager, select **Remove KernelSU**, leave data cleanup unchecked, then select **Enable KernelSU**. + +Re-enabling KernelSU reinstalls the bundled `meta-overlayfs`. The bundled installer copies the existing `modules.img`, preserving the module contents stored in that image. Back up any custom settings or scripts in the `meta-overlayfs` directory first, because reinstalling replaces that directory. + +Once the cached module changes, its checksum no longer matches the record for the old ramdisk, so the instance uses the stock ramdisk until it is rebuilt. + ## License and sources Scripts and configuration are Apache-2.0. KernelSU patches are GPL-2.0-only. See [LICENSE](LICENSE) for the full terms. The x86_64 AVD build approach draws on [avd-kernelsu-x86_64-MultiSU](https://github.com/imkamaran/avd-kernelsu-x86_64-MultiSU). `x86_64-seccomp-skip.patch` and `x86_64-do_syscall_64-fallback.patch` are taken from the `patches/` directory of [avd-kernelsu-x86_64](https://github.com/leemikepop/avd-kernelsu-x86_64) at commit `d82e42733f08a03220dbbe72d7d998c162ca74d6` and are licensed GPL-2.0-only. avd-kernelsu-x86_64-MultiSU is a fork of it and has the same two files at commit `c4c5f421ba74b58b49d0a9f47fed2da97a836e8c`. Their content is unchanged; only a source note was added at the top of each file. diff --git a/README.md b/README.md index e687837..296a695 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,17 @@ ModAVDManager 下载模块用的标签、文件名、大小和 SHA-256 写在管 要单独拿一份正式制品(比如上机复查),仍可以在 `main` 上手动触发构建(Actions → Build KernelSU LKM → Run workflow),得到 `verified-ksu-lkm-<目标 ID>` 制品,保留 14 天。 +## 已有实例升级 + +升级到随包带有新版 KernelSU 钉值的 ModAVD 后,正常关闭用过 KernelSU 的实例,再在「电脑检查」下载新版 KernelSU 组件,或运行 `modavd components fetch --kernelsu`。 + +- 命令行对每个实例运行 `modavd ksu install`,重建该实例的 ramdisk。 +- 在管理器里先点「移除 KernelSU」,保持清理数据选项未勾选,再点「启用 KernelSU」。 + +重新启用会重装随包的 `meta-overlayfs`。默认安装会复制已有的 `modules.img`,其中的模块内容会保留。改过 `meta-overlayfs` 目录内配置或脚本的用户,请先备份这些文件,重装会替换旧目录。 + +缓存更新后,旧 ramdisk 的校验记录与新版模块哈希不同,实例在重建前会回退到原版 ramdisk 启动。 + ## 许可证和来源 本目录脚本和配置按 Apache-2.0 发布。KernelSU 补丁按 GPL-2.0-only 发布。许可证全文见 [LICENSE](LICENSE)。x86_64 AVD 构建思路参考 [avd-kernelsu-x86_64-MultiSU](https://github.com/imkamaran/avd-kernelsu-x86_64-MultiSU)。`x86_64-seccomp-skip.patch` 和 `x86_64-do_syscall_64-fallback.patch` 取自 [avd-kernelsu-x86_64](https://github.com/leemikepop/avd-kernelsu-x86_64) 提交 `d82e42733f08a03220dbbe72d7d998c162ca74d6` 的 `patches/` 目录,按 GPL-2.0-only 授权。avd-kernelsu-x86_64-MultiSU 是它的 fork,提交 `c4c5f421ba74b58b49d0a9f47fed2da97a836e8c` 里的这两个文件和它相同。补丁内容没有改动,只在文件开头加了来源说明。