X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/390507fff71bb72a9b01e19a43b6959441ee96cf..fc5cd0a00a6745d7a8ce31bfadd76e8d064e18a1:/IMG/cpio/ventoy/ventoy_chain.sh?ds=sidebyside diff --git a/IMG/cpio/ventoy/ventoy_chain.sh b/IMG/cpio/ventoy/ventoy_chain.sh index 1bdc02a..ccd7e3d 100644 --- a/IMG/cpio/ventoy/ventoy_chain.sh +++ b/IMG/cpio/ventoy/ventoy_chain.sh @@ -37,7 +37,6 @@ for i in $vtcmdline; do fi done - #################################################################### # # # Step 2 : Do OS specific hook # @@ -152,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 @@ -305,6 +306,26 @@ ventoy_get_os_type() { echo 'blackPanther'; return fi + if $GREP -q 'primeos' /proc/version; then + echo 'primeos'; return + fi + + if $GREP -q 'austrumi' /proc/version; then + echo 'austrumi'; return + fi + + if [ -f /DISTRO_SPECS ]; then + if $GREP -q '[Pp]uppy' /DISTRO_SPECS; then + echo 'debian'; return + elif $GREP -q 'veket' /DISTRO_SPECS; then + echo 'debian'; return + fi + fi + + if [ -f /etc/openEuler-release ]; then + echo "openEuler"; return + fi + echo "default" }