Files
MemRelay/projects/bc51a377-ed2d-4afc-a176-554fce220d45/Checkpoint 2026-12-01 16-42-06 UTC [86da4c69dd].md
T
memrelay 9edb2bdf89 create: Checkpoint 2026-12-01 16:42:06 UTC [86da4c69dd]
MemRelay-Operation: checkpoint-save:ckpt-rootfs-lite-20261202
MemRelay-Resource: c1cacb7f-b7b4-4daf-a5a2-ff414dc58f67
2026-12-02 00:42:10 +08:00

27 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Checkpoint 2026-12-01 16:42:06 UTC [86da4c69dd]
type: checkpoint
permalink: main/projects/bc51a377-ed2d-4afc-a176-554fce220d45/checkpoint-2026-12-01-16-42-06-utc-86da4c69dd
stable_id: c1cacb7f-b7b4-4daf-a5a2-ff414dc58f67
scope: project
memory_type: checkpoint
project_id: bc51a377-ed2d-4afc-a176-554fce220d45
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: ckpt-rootfs-lite-20261202
created_at: '2026-12-01T16:42:06.154742+00:00'
updated_at: '2026-12-01T16:42:06.154742+00:00'
tags:
- rootfs
- flasher
- lightweight
---
2026-12-02 轻量化改的是现有 rootfs,没有做 /sysdata,也没有重做 boot.img,没有刷板。
rootfs.img(flasher/devices/UFI003_MB_V02/images/rootfs.img,726679552 字节)里:压缩内存改为 SIZE=128,不再设 PERCENT;journald 磁盘上限 32M、内存上限 16M;关掉 apt-daily、apt-daily-upgrade、e2scrub 和 openstick 开机诊断。删掉了 locale、man、doc、info、i18n、groff、vim 和 X11 资料。文件实际占用从约 551MB 降到约 426MB。旧文件保留为 rootfs.img.before-lite。
面板改为 1.2,已编进这份 rootfs。IMEI 更换记录上限从 50 改为 10 万条,写在 mifipanel/src/imei.rs 的 HISTORY_MAX。流量、短信历史和转发记录原来就有上限。
硬盘大小由刷机工具决定。flasher/runtime/worker.py 在写入前按 eMMC 真实扇区数改主分区表:rootfs 起始扇区不动,结束于备份分区表之前,备份分区表写到盘尾。镜像放不下就停止。开机后已有的 resize2fs 把文件系统撑满这个分区。device.conf 里 gpt_backup.bin 的扇区号只是模板盘位置。已用模板盘、14GB 和装不下镜像的小盘验证过函数,没有真机刷入。