mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-08-28 08:21:14 +00:00
Add new iso support
This commit is contained in:
@@ -180,7 +180,22 @@ function distro_specify_initrd_file_phase2 {
|
||||
vt_linux_specify_initrd_file /sysresccd/boot/x86_64/sysresccd.img
|
||||
elif [ -f (loop)/CDlinux/initrd ]; then
|
||||
vt_linux_specify_initrd_file /CDlinux/initrd
|
||||
|
||||
elif [ -f (loop)/parabola/boot/x86_64/parabolaiso.img ]; then
|
||||
vt_linux_specify_initrd_file /parabola/boot/x86_64/parabolaiso.img
|
||||
if [ -f (loop)/parabola/boot/i686/parabolaiso.img ]; then
|
||||
vt_linux_specify_initrd_file /parabola/boot/i686/parabolaiso.img
|
||||
fi
|
||||
elif [ -f (loop)/EFI/BOOT/initrd.img ]; then
|
||||
#Qubes
|
||||
vt_linux_specify_initrd_file /EFI/BOOT/initrd.img
|
||||
if [ "$grub_platform" != "pc" ]; then
|
||||
vt_add_replace_file 0 "initrd.img"
|
||||
fi
|
||||
elif [ -f (loop)/initrd ]; then
|
||||
vt_linux_specify_initrd_file /initrd
|
||||
elif [ -f (loop)/live/initrd1 ]; then
|
||||
vt_linux_specify_initrd_file /live/initrd1
|
||||
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -278,6 +293,10 @@ function uefi_linux_menu_func {
|
||||
elif [ -f (loop)/EFI/BOOT/initrd.gz ]; then
|
||||
vt_add_replace_file $vtindex "EFI\\BOOT\\initrd.gz"
|
||||
fi
|
||||
elif [ -d (loop)/EFI/boot/entries ]; then
|
||||
if [ -f (loop)/parabola/boot/x86_64/parabolaiso.img ]; then
|
||||
vt_add_replace_file 0 "EFI\\parabolaiso\\parabolaiso.img"
|
||||
fi
|
||||
elif [ -e (loop)/syslinux/alt0/full.cz ]; then
|
||||
vt_add_replace_file 0 "EFI\\BOOT\\full.cz"
|
||||
set FirstTryBootFile='@EFI@BOOT@grubx64.efi'
|
||||
|
@@ -77,6 +77,7 @@ dd if=$LOOP of=$tmpdir/boot/core.img bs=512 count=2047 skip=1 status=none
|
||||
xz --check=crc32 $tmpdir/boot/core.img
|
||||
|
||||
cp -a ./tool $tmpdir/
|
||||
rm -f $tmpdir/ENROLL_THIS_KEY_IN_MOKMANAGER.cer
|
||||
cp -a Ventoy2Disk.sh $tmpdir/
|
||||
cp -a CreatePersistentImg.sh $tmpdir/
|
||||
dos2unix -q $tmpdir/Ventoy2Disk.sh
|
||||
|
Reference in New Issue
Block a user