]>
glassweightruler.freedombox.rocks Git - Ventoy.git/blob - LiveCDGUI/livecd.sh
3 if [ "$1" = "CI" ]; then
11 if ! [ -f $VENTOY_PATH/INSTALL
/grub
/grub.cfg
]; then
12 echo "no grub.cfg detected"
16 version
=$(grep 'set.*VENTOY_VERSION=' $VENTOY_PATH/INSTALL/grub/grub.cfg | awk -F'"' '{print $2}')
18 if ! [ -e $VENTOY_PATH/INSTALL
/ventoy
-${version}-linux.
tar.gz
]; then
19 echo "no ventoy-${version}-linux.tar.gz detected"
23 if [ "$1" = "CI" ]; then
27 if [ ! -f .
/EXT
/vmlinuz
]; then
28 echo "Please download EXT files firstly!"
38 if ! [ -d ISO_TMP
]; then
39 echo "Copy ISO_TMP failed"
43 cp -a .
/EXT
/vmlinuz ISO_TMP
/EFI
/boot
/
44 mv .
/initrd.img ISO_TMP
/EFI
/boot
/initrd
46 cp -a GRUB
/cdrom.img ISO_TMP
/EFI
/boot
/
47 cp -a GRUB
/bootx64.efi ISO_TMP
/EFI
/boot
/
54 dd if=/dev
/zero of
=efi.img bs
=1M count
=2
57 mkdir -p efimnt
/EFI
/boot
58 cp $OPT GRUB
/bootx64.efi efimnt
/EFI
/boot
/
62 cp -a efi.img ISO_TMP
/EFI
/boot
/
70 sed "s/xxx/$version/g" -i EFI
/boot
/grub.cfg
72 rm -f ..
/ventoy
-${version}-livecd.iso
74 xorriso
-as mkisofs
-allow-lowercase --sort-weight 0 / --sort-weight 1 /EFI
-v -R -J -V 'VentoyLiveCD' -P 'VENTOY COMPATIBLE' -p 'https://www.ventoy.net' -sysid 'Ventoy' -A 'VentoyLiveCD' -b EFI
/boot
/cdrom.img
--grub2-boot-info --grub2-mbr ..
/GRUB
/boot_hybrid.img
-c EFI
/boot
/boot.
cat -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e EFI
/boot
/efi.img
-no-emul-boot -append_partition 2 0xEF EFI
/boot
/efi.img
-o ..
/ventoy
-${version}-livecd.iso .
80 if [ -f ventoy
-${version}-livecd.iso
]; then
81 echo "========== SUCCESS ============="
83 echo "========== FAILED ============="