Skip to content

Commit b989266

Browse files
authored
Fix the boot issue for Parted Magic (#3304)
1 parent 0e9d344 commit b989266

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

IMG/cpio/ventoy/ventoy_chain.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ ventoy_get_os_type() {
5252
fi
5353
fi
5454

55+
# Parted Magic
56+
if [ -d /pmagic ]; then
57+
echo 'pmagic'; return
58+
fi
59+
5560
# PrimeOS :
5661
if $GREP -q 'PrimeOS' /proc/version; then
5762
echo 'primeos'; return
@@ -237,10 +242,6 @@ ventoy_get_os_type() {
237242
echo 'adelie'; return
238243
fi
239244

240-
if $GREP -q 'pmagic' /proc/version; then
241-
echo 'pmagic'; return
242-
fi
243-
244245
if $GREP -q 'CDlinux' /proc/cmdline; then
245246
echo 'cdlinux'; return
246247
fi

IMG/cpio/ventoy/ventoy_loop.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ ventoy_get_os_type() {
101101
fi
102102
fi
103103

104+
# Parted Magic
105+
if [ -d /pmagic ]; then
106+
echo 'pmagic'; return
107+
fi
108+
104109
# rhel5/CentOS5 and all other distributions based on them
105110
if $GREP -q 'el5' /proc/version; then
106111
echo 'rhel5'; return
@@ -269,10 +274,6 @@ ventoy_get_os_type() {
269274
echo 'adelie'; return
270275
fi
271276

272-
if $GREP -q 'pmagic' /proc/version; then
273-
echo 'pmagic'; return
274-
fi
275-
276277
if $GREP -q 'CDlinux' /proc/cmdline; then
277278
echo 'cdlinux'; return
278279
fi

0 commit comments

Comments
 (0)