X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/83d91c525fa7e5c5a1866275a8f6bdcd09d62d90..fc5cd0a00a6745d7a8ce31bfadd76e8d064e18a1:/IMG/cpio/ventoy/ventoy_chain.sh?ds=inline diff --git a/IMG/cpio/ventoy/ventoy_chain.sh b/IMG/cpio/ventoy/ventoy_chain.sh index 7390832..ccd7e3d 100644 --- a/IMG/cpio/ventoy/ventoy_chain.sh +++ b/IMG/cpio/ventoy/ventoy_chain.sh @@ -151,6 +151,8 @@ ventoy_get_os_type() { echo 'debian'; return elif $GREP -q 'Solus' /etc/os-release; then echo 'rhel7'; return + elif $GREP -q 'openEuler' /etc/os-release; then + echo 'openEuler'; return fi fi @@ -320,6 +322,10 @@ ventoy_get_os_type() { fi fi + if [ -f /etc/openEuler-release ]; then + echo "openEuler"; return + fi + echo "default" }