]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
Fix the boot issue for latest TinyCore Linux.
authorlongpanda <admin@ventoy.net>
Fri, 21 Feb 2025 04:59:33 +0000 (12:59 +0800)
committerlongpanda <admin@ventoy.net>
Fri, 21 Feb 2025 04:59:33 +0000 (12:59 +0800)
IMG/cpio/ventoy/hook/tinycore/ventoy-disk.sh
INSTALL/grub/grub.cfg

index 90ebbafe572fe0dd9321d0751083f36fc02e3933..86dce825a84631fd321d4fe3ff4fc17d3478741a 100644 (file)
@@ -45,8 +45,15 @@ fi
 # TinyCore linux distro doesn't contain dmsetup, we use aoe here
 sudo modprobe aoe aoe_iflist=lo
 if [ -e /sys/module/aoe ]; then
 # TinyCore linux distro doesn't contain dmsetup, we use aoe here
 sudo modprobe aoe aoe_iflist=lo
 if [ -e /sys/module/aoe ]; then
-    VBLADE_BIN=$(ventoy_get_vblade_bin)
     
     
+    if ! [ -d /lib64 ]; then
+        vtlog "link lib64"
+        NEED_UNLIB64=1
+        ln -s /lib /lib64
+    fi
+    
+    VBLADE_BIN=$(ventoy_get_vblade_bin)
+
     sudo nohup $VBLADE_BIN -r -f $VTOY_PATH/ventoy_image_map 9 0 lo "$vtdiskname" > /dev/null & 
     sleep 2
 
     sudo nohup $VBLADE_BIN -r -f $VTOY_PATH/ventoy_image_map 9 0 lo "$vtdiskname" > /dev/null & 
     sleep 2
 
@@ -54,9 +61,14 @@ if [ -e /sys/module/aoe ]; then
         vtlog 'Wait for /dev/etherd/e9.0 ....'
         sleep 2
     done
         vtlog 'Wait for /dev/etherd/e9.0 ....'
         sleep 2
     done
-
+    
     sudo cp -a /dev/etherd/e9.0  "$vPart"
 
     sudo cp -a /dev/etherd/e9.0  "$vPart"
 
+    if [ -n "$NEED_UNLIB64" ]; then
+        vtlog "unlink lib64"
+        unlink /lib64
+    fi
+
     ventoy_find_bin_run rebuildfstab
 else
     vterr "aoe driver module load failed..."
     ventoy_find_bin_run rebuildfstab
 else
     vterr "aoe driver module load failed..."
index 5bb87aa4a5f5dc1d16c9a5cb8ba5c3d404aaef1f..f722d9ceacf5d0bc0aeb366538a2290539ce10e9 100644 (file)
@@ -671,7 +671,7 @@ function uefi_linux_menu_func {
         if [ -d (loop)/pmagic ]; then
             vt_linux_specify_initrd_file /pmagic/initrd.img
         else
         if [ -d (loop)/pmagic ]; then
             vt_linux_specify_initrd_file /pmagic/initrd.img
         else
-            for file in "boot/grub/grub.cfg" "EFI/BOOT/grub.cfg" "EFI/boot/grub.cfg" "efi/boot/grub.cfg" "EFI/BOOT/BOOTX64.conf" "/grub/grub.cfg"; do
+            for file in "boot/grub/grub.cfg" "EFI/BOOT/grub.cfg" "EFI/boot/grub.cfg" "efi/boot/grub.cfg" "EFI/BOOT/BOOTX64.conf" "/grub/grub.cfg" "EFI/BOOT/grub/grub.cfg"; do
                 if [ -e (loop)/$file ]; then                    
                     vt_linux_parse_initrd_grub  file  (loop)/$file
                 fi
                 if [ -e (loop)/$file ]; then                    
                     vt_linux_parse_initrd_grub  file  (loop)/$file
                 fi