Fix the boot issue for Parted Magic (#3304)
Some checks are pending
Ventoy CI / build (push) Waiting to run
Mirror GitHub to Gitee / Sync-GitHub-to-Gitee (push) Waiting to run

This commit is contained in:
fsLeg 2025-08-05 04:10:33 +03:00 committed by GitHub
parent 0e9d34422a
commit b9892660b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 8 deletions

View 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

View 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