X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/83d91c525fa7e5c5a1866275a8f6bdcd09d62d90..07d4140cf45c2fb7f9d4f5823b2bd8d73626dfc9:/IMG/cpio/ventoy/ventoy_chain.sh diff --git a/IMG/cpio/ventoy/ventoy_chain.sh b/IMG/cpio/ventoy/ventoy_chain.sh index 7390832..10fcc42 100644 --- a/IMG/cpio/ventoy/ventoy_chain.sh +++ b/IMG/cpio/ventoy/ventoy_chain.sh @@ -151,6 +151,10 @@ 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 + elif $GREP -q 'fuyu' /etc/os-release; then + echo 'openEuler'; return fi fi @@ -320,6 +324,10 @@ ventoy_get_os_type() { fi fi + if [ -f /etc/openEuler-release ]; then + echo "openEuler"; return + fi + echo "default" }