mirror of
https://github.com/ventoy/Ventoy.git
synced 2024-11-11 13:10:38 +00:00
c8e86938fe
2. auto installation plugin update 1) Expand the configuration, now you can specify more than one auto installation scripts for one ISO file 2) Add a prompt for the iso with auto installation config, you can choose whether to use the auto installation script and which one to use for this time 3. persistence plugin update 1) Expand the configuration, now you can specify more than one persistence backend image files for one ISO file 2) Add a prompt for the iso with persistence config, you can choose whether to use the persistence image and which one to use for this time 4. Move the position of the red Memdisk tip to a more prominent position 5. Add a return parent directory item when in TreeView mode 6. Add a VTOY_DEFAULT_SEARCH_ROOT option in global control plugin to specify the root path of the iso files. 7. Change the style of F2 power menu 8. Fix a bug about Ventoy2Disk.exe can't start when there is a DataRAM Ramdisk in the system. 9. Files with size less than 32KB will be filted by default 10. Fix a bug about wrong file size in TreeView mode with NTFS/XFS 11. Files with space or Non Ascii charactors in name will be shown but with unsupported message when you boot it. 12. Optimization for Ventoy2Disk.sh 13. Optimization for arch linux boot 14. New iso support
51 lines
1.1 KiB
Bash
51 lines
1.1 KiB
Bash
#!/bin/sh
|
|
|
|
|
|
echo ''
|
|
echo '***********************************************************'
|
|
echo '* Ventoy2Disk Script *'
|
|
echo '* longpanda admin@ventoy.net *'
|
|
echo '***********************************************************'
|
|
echo ''
|
|
|
|
OLDDIR=$PWD
|
|
|
|
if ! [ -f ./tool/xzcat ]; then
|
|
if [ -f ${0%Ventoy2Disk.sh}/tool/xzcat ]; then
|
|
cd ${0%Ventoy2Disk.sh}
|
|
fi
|
|
fi
|
|
|
|
if ! [ -f ./boot/boot.img ]; then
|
|
if [ -d ./grub ]; then
|
|
echo "Don't run Ventoy2Disk.sh here, please download the released install package, and run the script in it."
|
|
else
|
|
echo "Please run under the correct directory!"
|
|
fi
|
|
exit 1
|
|
fi
|
|
|
|
echo "############# Ventoy2Disk $* ################" >> ./log.txt
|
|
|
|
#decompress tool
|
|
if ! [ -f ./tool/ash ]; then
|
|
cd tool
|
|
chmod +x ./xzcat
|
|
for file in $(ls *.xz); do
|
|
./xzcat $file > ${file%.xz}
|
|
chmod +x ${file%.xz}
|
|
done
|
|
cd ../
|
|
|
|
if ! [ -f ./tool/ash ]; then
|
|
echo 'Failed to decompress tools ...'
|
|
cd $OLDDIR
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
./tool/ash ./tool/VentoyWorker.sh $*
|
|
|
|
cd $OLDDIR
|
|
|