From: fsLeg Date: Tue, 5 Aug 2025 01:10:33 +0000 (+0300) Subject: Fix the boot issue for Parted Magic (#3304) X-Git-Tag: v1.1.06~6 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/commitdiff_plain/b9892660b5b5467d17fe6a690b16ea1194fd9f27?ds=inline Fix the boot issue for Parted Magic (#3304) --- diff --git a/IMG/cpio/ventoy/ventoy_chain.sh b/IMG/cpio/ventoy/ventoy_chain.sh index c0dbf11..d63a132 100644 --- a/IMG/cpio/ventoy/ventoy_chain.sh +++ b/IMG/cpio/ventoy/ventoy_chain.sh @@ -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 diff --git a/IMG/cpio/ventoy/ventoy_loop.sh b/IMG/cpio/ventoy/ventoy_loop.sh index 38e6016..ee8ceed 100644 --- a/IMG/cpio/ventoy/ventoy_loop.sh +++ b/IMG/cpio/ventoy/ventoy_loop.sh @@ -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