From b9892660b5b5467d17fe6a690b16ea1194fd9f27 Mon Sep 17 00:00:00 2001 From: fsLeg Date: Tue, 5 Aug 2025 04:10:33 +0300 Subject: [PATCH] Fix the boot issue for Parted Magic (#3304) --- IMG/cpio/ventoy/ventoy_chain.sh | 9 +++++---- IMG/cpio/ventoy/ventoy_loop.sh | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/IMG/cpio/ventoy/ventoy_chain.sh b/IMG/cpio/ventoy/ventoy_chain.sh index c0dbf114..d63a1322 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 38e60162..ee8ceedc 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