我正在尝试使用 veritysetup 从 adb shell 获取 dm-verity 状态,但是我传递的所有设备都会导致:
# cryptsetup 1.3.1 processing "./veritysetup --debug --verbose status /dev/device-mapper"
# Running command status.
# Initialising device-mapper backend library.
# Detected kernel Linux 3.10.49-gd004f33-dirty aarch64.
# dm version OF [16384]
# dm versions OF [16384]
# Device-mapper backend running with UDEV support disabled.
/dev/mapper: opendir failed: No such file or directory
Device /dev/device-mapper not found
# Releasing device-mapper backend.
# crypt_status: 0
Command failed with code 22: Invalid argument
我正在尝试:/dev/dm-0, /dev/device-mapper, /system and /dev/block/mmcblk0p30
- 所有结果都出现相同的错误。
命令行是:
$ veritysetup --debug --verbose status /dev/block/mmcblk0p30
我究竟做错了什么?