]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
Fix the boot issue for Parted Magic (#3304)
authorfsLeg <fsLeg@users.noreply.github.com>
Tue, 5 Aug 2025 01:10:33 +0000 (04:10 +0300)
committerGitHub <noreply@github.com>
Tue, 5 Aug 2025 01:10:33 +0000 (09:10 +0800)
IMG/cpio/ventoy/ventoy_chain.sh
IMG/cpio/ventoy/ventoy_loop.sh

index c0dbf114d46029dbb124717cc5ad0417f7c8759e..d63a132239ee76e53975d4151b264abc5f974f31 100644 (file)
@@ -52,6 +52,11 @@ ventoy_get_os_type() {
         fi
     fi
 
+    # Parted Magic
+    if [ -d /pmagic ]; then
+        echo 'pmagic'; return
+    fi
+
     # PrimeOS :
     if $GREP -q 'PrimeOS' /proc/version; then
         echo 'primeos'; return
@@ -237,10 +242,6 @@ ventoy_get_os_type() {
         echo 'adelie'; return
     fi
     
-    if $GREP -q 'pmagic' /proc/version; then
-        echo 'pmagic'; return
-    fi
-    
     if $GREP -q 'CDlinux' /proc/cmdline; then
         echo 'cdlinux'; return
     fi
index 38e60162c09c3f8253b53151890c84a97507b155..ee8ceedce3c523c636c0cb6ce4df96658b091afb 100644 (file)
@@ -101,6 +101,11 @@ ventoy_get_os_type() {
         fi
     fi
 
+    # Parted Magic
+    if [ -d /pmagic ]; then
+        echo 'pmagic'; return
+    fi
+
     # rhel5/CentOS5 and all other distributions based on them
     if $GREP -q 'el5' /proc/version; then
         echo 'rhel5'; return
@@ -269,10 +274,6 @@ ventoy_get_os_type() {
         echo 'adelie'; return
     fi
     
-    if $GREP -q 'pmagic' /proc/version; then
-        echo 'pmagic'; return
-    fi
-    
     if $GREP -q 'CDlinux' /proc/cmdline; then
         echo 'cdlinux'; return
     fi