create: 启动校验只在记录对不上时停在 initramfs
MemRelay-Operation: memory-save:boot-guard-initramfs-2026-12-02 MemRelay-Resource: 1502f5a2-f888-4c60-913f-8bf88daa9a22
This commit is contained in:
@@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
title: 启动校验只在记录对不上时停在 initramfs
|
||||||
|
type: decision
|
||||||
|
permalink: main/projects/bc51a377-ed2d-4afc-a176-554fce220d45/启动校验只在记录对不上时停在-initramfs
|
||||||
|
stable_id: 1502f5a2-f888-4c60-913f-8bf88daa9a22
|
||||||
|
scope: project
|
||||||
|
memory_type: decision
|
||||||
|
project_id: bc51a377-ed2d-4afc-a176-554fce220d45
|
||||||
|
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
|
||||||
|
status: active
|
||||||
|
revision: 1
|
||||||
|
request_id: boot-guard-initramfs-2026-12-02
|
||||||
|
created_at: '2026-12-02T04:08:56.454636+00:00'
|
||||||
|
updated_at: '2026-12-02T04:08:56.454636+00:00'
|
||||||
|
tags:
|
||||||
|
- boot
|
||||||
|
- initramfs
|
||||||
|
- imei_check
|
||||||
|
---
|
||||||
|
|
||||||
|
UFI003 启动校验放在 initramfs 的 /scripts/local-top。这份 initramfs 的 run_scripts 只 source ORDER,不会扫目录。ORDER 再 source board-check,让 panic 跑在 init 进程里;如果另开进程执行,子进程里的 panic 挡不住系统继续挂载。被 source 的脚本不能写 exit 或 return。
|
||||||
|
|
||||||
|
放行:没有 imei_check、字段为空、找不到 devinfo 或读不出最后一个 512 字节扇区、/bin/boot-guard 不存在。停住:记录已在,但缺芯片号、缺 /proc/device-tree/serial-number,或 HMAC 与记录不一致。伪装文案就是这份 initramfs 找不到 root 时的原话:Gave up waiting for root file system device,接着 ALERT! PARTUUID=a7ab80e8-e9d1-e8cd-f157-93f69b1d141e does not exist。命令行没有 panic=,会停在 (initramfs) shell。复位仍可进 9008。
|
||||||
|
|
||||||
|
bin 是指向 usr/bin 的符号链接,静态程序放在 usr/bin/boot-guard。标记算法与面板 imei_tag 相同,已用向量 abc/07e6697d 对过。不要把校验材料写进记忆或聊天。
|
||||||
Reference in New Issue
Block a user