Ventoy2Disk.sh supports musl libc envrionment. (#3332)
Some checks failed
Ventoy CI / build (push) Has been cancelled
Mirror GitHub to Gitee / Sync-GitHub-to-Gitee (push) Has been cancelled

Only Ventoy2Disk.sh support, WebUI/LinuxGUI does not support.
This commit is contained in:
longpanda
2025-12-18 23:32:34 +08:00
parent 65b88aabc5
commit f7e4a7a6ec
2 changed files with 11 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ elif uname -m | grep -E -q 'mips64'; then
else
export TOOLDIR=i386
fi
export PATH="./tool/$TOOLDIR:$PATH"
export PATH="$OLDDIR/tool/$TOOLDIR:$PATH"
echo ''
@@ -61,6 +61,14 @@ if [ $? -eq 0 ]; then
done
fi
#use static linked mkexfatfs for musl-libc environment
if [ -f mkexfatfs_static ]; then
if ldd --version 2>&1 | grep -qi musl; then
mv mkexfatfs mkexfatfs_shared
mv mkexfatfs_static mkexfatfs
fi
fi
cd ../../
chmod +x -R ./tool/$TOOLDIR