From 1e4965cb245cd9e597d9b875ad9624a2c7b9292c Mon Sep 17 00:00:00 2001 From: longpanda <59477474+ventoy@users.noreply.github.com> Date: Thu, 21 May 2020 16:05:07 +0800 Subject: [PATCH] Update ventoy_lib.sh --- INSTALL/tool/ventoy_lib.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/INSTALL/tool/ventoy_lib.sh b/INSTALL/tool/ventoy_lib.sh index 37e6fb75..803375d8 100644 --- a/INSTALL/tool/ventoy_lib.sh +++ b/INSTALL/tool/ventoy_lib.sh @@ -267,8 +267,14 @@ EOF if ! [ -b $PART2 ]; then MajorMinor=$(sed "s/:/ /" /sys/class/block/${PART2#/dev/}/dev) - echo "mknod -m 0660 $PART2 b $MajorMinor ..." + echo "mknod -m 0660 $PART2 b $MajorMinor ..." mknod -m 0660 $PART2 b $MajorMinor + + if ! [ -b $PART1 ]; then + MajorMinor=$(sed "s/:/ /" /sys/class/block/${PART1#/dev/}/dev) + echo "mknod -m 0660 $PART1 b $MajorMinor ..." + mknod -m 0660 $PART1 b $MajorMinor + fi fi echo "create efi fat fs ..."