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