linux raw boot

This commit is contained in:
longpanda
2020-09-27 17:23:50 +08:00
parent 4f840ed673
commit bf4e014023
12 changed files with 195 additions and 55 deletions

View File

@@ -52,7 +52,7 @@ check_tool_work_ok() {
vtoyfat=vtoyfat_32
fi
if echo 1 | ./tool/hexdump > /dev/null; then
if echo 1 | hexdump > /dev/null; then
vtdebug "hexdump test ok ..."
else
vtdebug "hexdump test fail ..."
@@ -88,6 +88,8 @@ get_disk_part_name() {
echo ${DISK}p${2}
elif echo $DISK | grep -q "/dev/nvme[0-9][0-9]*n[0-9]"; then
echo ${DISK}p${2}
elif echo $DISK | grep -q "/dev/mmcblk[0-9]"; then
echo ${DISK}p${2}
else
echo ${DISK}${2}
fi