]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - IMG/cpio/ventoy/ventoy_chain.sh
Fix the "Unsupported vtoy type unknown" error when boot a VDI file created by Virtual...
[Ventoy.git] / IMG / cpio / ventoy / ventoy_chain.sh
index cae7c4fd04fd94fe03fb9490f5b00da610bb7dd6..c0dbf114d46029dbb124717cc5ad0417f7c8759e 100644 (file)
@@ -376,6 +376,20 @@ ventoy_get_os_type() {
     if $GREP -q 'chimera' /proc/version; then
         echo 'chimera'; return
     fi
+
+    
+    if $GREP -q '4.19.' /proc/version; then
+        if [ -d /lib/dracut/hooks ]; then
+            echo 'openEuler'; return
+        fi
+    fi
+    
+    if [ -f /etc/tinyramfs/config ]; then
+        if $GREP -q 'EWE_ISO' /etc/tinyramfs/config; then
+            echo "ewe"; return
+        fi
+    fi
+    
     
     echo "default"
 }