Skip to content

Commit

Permalink
fix ventoy live
Browse files Browse the repository at this point in the history
  • Loading branch information
catherinedoyel authored Jul 4, 2023
1 parent 79c8428 commit b836200
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
tar -xf ventoy-*
rm *.gz
cd ventoy-*
dd if=/dev/zero of=/tmp/256MBwLiveCD.img bs=512 count=494080
dd if=/dev/zero of=/tmp/256MBwLiveCD.img bs=512 count=491520
losetup
sudo losetup -fP /tmp/256MBwLiveCD.img
sudo yes | sudo ./Ventoy2Disk.sh -I /dev/loop3
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
echo 256 megabyte complete
cd $GITHUB_WORKSPACE
cd ventoy-*
dd if=/dev/zero of=/tmp/1024MBempty.img bs=512 count=1976320
dd if=/dev/zero of=/tmp/1024MBempty.img bs=512 count=1966080
sudo losetup -fP /tmp/1024MBempty.img
sudo yes | sudo ./Ventoy2Disk.sh -I /dev/loop3
cd ..
Expand All @@ -83,6 +83,9 @@ jobs:
sudo losetup -d /dev/loop3
cd /tmp
zip -r 1024MBempty.img.zip 1024MBempty.img
echo 4gb sectors 7864320
echo 6gb sectors 9830400
echo 8gb sectors 15728640
- name: Create release
id: create-new-release
uses: actions/create-release@v1
Expand Down
24 changes: 12 additions & 12 deletions vtoyefi/EFI/boot/grub.cfg
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
if [ -f /EFI/VentoyLiveCD ]; then
menuentry 'Ventoy Installer - Overwrite flash drive contents with Ventoy. ' { linux /EFI/boot/vmlinuz first_run rdinit=/VTOY/init; initrd /EFI/boot/initrd; boot}
else
menuentry "Want to Install Ventoy? Click here." {
echo "This seems to be missing 3 files from the Ventoy LiveCD ISO. /EFI/boot/vmlinuz, /EFI/boot/initrd and /EFI/VentoyLiveCD"
echo -n "Press <Enter> to continue"
read pointless_variable
}
fi

menuentry 'KeyTool - Secure Boot management tool.' { chainloader /EFI/boot/KeyTool.efi }

if [ -f /antiX/vmlinuz ]; then
menuentry 'antiX - Lightweight & practical Linux distro. ' { linux /antiX/vmlinuz from=all; initrd /antiX/initrd.gz; boot}
else
menuentry "Want to run antiX? Click here." {
echo "Go to antixlinux.com & get an antiX iso. Then extract the antiX folder from inside. Place antiX folder next to EFI on the root of the flash drive."
echo -n $"Press <Enter> to continue"" "
read pointless_variable
}
fi

if [ -f /EFI/VentoyLiveCD ]; then
menuentry 'Ventoy Installer - Overwrite flash drive contents with Ventoy. ' { linux /EFI/boot/vmlinuz; initrd /EFI/boot/initrd; boot}
else
menuentry "Want to Install Ventoy? Click here." {
echo "This seems to be missing 3 files from the Ventoy LiveCD ISO. /EFI/boot/vmlinuz, /EFI/boot/initrd and /EFI/VentoyLiveCD"
echo -n $"Press <Enter> to continue"" "
echo -n "Press <Enter> to continue"
read pointless_variable
}
fi

menuentry 'Want help?' {
echo 'This file originated from https://github.com/catherinedoyel/ventoyimg view the readme or make an issue for assistance.'
echo -n $'Press <Enter> to continue'
echo -n "Press <Enter> to continue"
read pointless_variable
}

0 comments on commit b836200

Please sign in to comment.