From: longpanda Date: Sun, 13 Feb 2022 09:01:10 +0000 (+0800) Subject: Merge branch 'master' of https://github.com/ventoy/Ventoy X-Git-Tag: v1.0.67~6 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/commitdiff_plain/5291d66736e2fbbea04a5496b960fa4cb3599902?hp=ba5978d2987cce2545e10696a6ca14c6d54fdc92 Merge branch 'master' of https://github.com/ventoy/Ventoy --- diff --git a/INSTALL/tool/VentoyWorker.sh b/INSTALL/tool/VentoyWorker.sh index 9754e5e..cdb1dbb 100644 --- a/INSTALL/tool/VentoyWorker.sh +++ b/INSTALL/tool/VentoyWorker.sh @@ -60,6 +60,12 @@ while [ -n "$1" ]; do exit 1 fi DISK=$1 + # Resolve symlinks now, will be needed to look up information about the device in + # the /sys/ filesystem, for example /sys/class/block/${DISK#/dev/}/start + # The main use case is supporting /dev/disk/by-id/ symlinks instead of raw devices + if [ -L "$DISK" ]; then + DISK=$(readlink -e -n "$DISK") + fi fi shift