Add support for some EulerOS release.

This commit is contained in:
longpanda
2026-07-24 11:52:45 +08:00
parent 0963c1d396
commit ac300d7464
4 changed files with 78 additions and 1 deletions

View File

@@ -100,7 +100,11 @@ ventoy_get_os_type() {
echo 'rhel7'; return
elif $GREP -q 'euleros' /proc/version; then
echo 'rhel7'; return
if [ -d /usr/Euler/project/init ]; then
echo 'euleros'; return
else
echo 'rhel7'; return
fi
# SUSE
elif $GREP -q 'SUSE' /proc/version; then