X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/4a42bdfce72171f5b5eb63f4518c5049dfccd712..b9892660b5b5467d17fe6a690b16ea1194fd9f27:/IMG/cpio/ventoy/ventoy_loop.sh 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