mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-08-05 05:12:26 +00:00
Fix the boot issue for Parted Magic (#3304)
This commit is contained in:
parent
0e9d34422a
commit
b9892660b5
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user