]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - IMG/cpio/ventoy/ventoy_chain.sh
support boot Windows VHD(x) at local disk
[Ventoy.git] / IMG / cpio / ventoy / ventoy_chain.sh
index 7390832671f48eb3feb73fa1405aadb9afd8d1f0..10fcc426dbb5e9a38d54f572ca1c45756d4933d8 100644 (file)
@@ -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"
 }