From 0faba673a511e6988244df5b7f062514c248f79c Mon Sep 17 00:00:00 2001 From: David P Date: Mon, 14 Sep 2020 01:56:12 +0000 Subject: [PATCH 1/2] fix Parabola systemd-boot loader (#473) --- INSTALL/grub/grub.cfg | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/INSTALL/grub/grub.cfg b/INSTALL/grub/grub.cfg index a7a0caea..776a7d57 100644 --- a/INSTALL/grub/grub.cfg +++ b/INSTALL/grub/grub.cfg @@ -493,6 +493,12 @@ function uefi_linux_menu_func { elif [ -f (loop)/boot/initramfs_x86_64.img ]; then vt_add_replace_file $vtindex "boot\\initramfs_x86_64.img" fi + elif [ -d (loop)/parabola ]; then + if [ -f (loop)/parabola/boot/x86_64/parabola.img ]; then + vt_add_replace_file $vtindex "EFI\\parabola\\parabola.img" + elif [ -f (loop)/boot/initramfs_x86_64.img ]; then + vt_add_replace_file $vtindex "boot\\initramfs_x86_64.img" + fi elif [ -f (loop)/EFI/BOOT/initrd.gz ]; then vt_add_replace_file $vtindex "EFI\\BOOT\\initrd.gz" elif [ -f (loop)/loader/entries/thinstation.conf ]; then @@ -508,7 +514,7 @@ function uefi_linux_menu_func { 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" + 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" From 774e38928f418b1d61809f54a522f488dc4cce0a Mon Sep 17 00:00:00 2001 From: longpanda Date: Fri, 18 Sep 2020 11:49:18 +0800 Subject: [PATCH 2/2] update VentoyWorker.sh for nvme --- INSTALL/tool/VentoyWorker.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/INSTALL/tool/VentoyWorker.sh b/INSTALL/tool/VentoyWorker.sh index ac61997c..658b7a12 100644 --- a/INSTALL/tool/VentoyWorker.sh +++ b/INSTALL/tool/VentoyWorker.sh @@ -240,7 +240,10 @@ if [ "$MODE" = "install" ]; then cluster_sectors=64 fi - $cmd -n ventoy -s $cluster_sectors ${DISK}1 + PART1=$(get_disk_part_name $DISK 1) + PART2=$(get_disk_part_name $DISK 2) + + $cmd -n ventoy -s $cluster_sectors ${PART1} vtinfo "writing data to disk ..." @@ -268,7 +271,7 @@ if [ "$MODE" = "install" ]; then vtinfo "esp partition processing ..." sleep 1 - mtpnt=$(grep "^${DISK}2" /proc/mounts | awk '{print $2}') + mtpnt=$(grep "^${PART2}" /proc/mounts | awk '{print $2}') if [ -n "$mtpnt" ]; then umount $mtpnt >/dev/null 2>&1 fi @@ -278,12 +281,12 @@ if [ "$MODE" = "install" ]; then vtdebug "mounting part2 ...." for tt in 1 2 3; do - if mount ${DISK}2 ./tmp_mnt; then + if mount ${PART2} ./tmp_mnt; then vtdebug "mounting part2 success" break fi - mtpnt=$(grep "^${DISK}2" /proc/mounts | awk '{print $2}') + mtpnt=$(grep "^${PART2}" /proc/mounts | awk '{print $2}') if [ -n "$mtpnt" ]; then umount $mtpnt >/dev/null 2>&1 fi @@ -363,7 +366,7 @@ else vtdebug "mounting part2 ...." for tt in 1 2 3; do - if mount ${DISK}2 ./tmp_mnt; then + if mount ${PART2} ./tmp_mnt; then vtdebug "mounting part2 success" break fi