mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-07-27 17:02:23 +00:00
Merge branch 'master' of https://github.com/ventoy/Ventoy
This commit is contained in:
commit
5291d66736
@ -60,6 +60,12 @@ while [ -n "$1" ]; do
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
DISK=$1
|
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
|
fi
|
||||||
|
|
||||||
shift
|
shift
|
||||||
|
Loading…
x
Reference in New Issue
Block a user