]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
optimization for deepin/uos latest release
authorlongpanda <admin@ventoy.net>
Sat, 25 Sep 2021 03:22:55 +0000 (11:22 +0800)
committerlongpanda <admin@ventoy.net>
Sat, 25 Sep 2021 03:22:55 +0000 (11:22 +0800)
IMG/cpio/ventoy/ventoy_chain.sh
IMG/cpio/ventoy/ventoy_loop.sh

index 3b12922b33d71b2d9f8eb2ad4dc69ce484226dcd..7b10a96beee26c8e57f2eb0b7fab21ab23c27b4c 100644 (file)
@@ -88,8 +88,8 @@ ventoy_get_os_type() {
         
     # Deepin : do the same process with debian
     elif $GREP -q '[Dd]eepin' /proc/version; then
-        echo 'debian'; return
-        
+        echo 'debian'; return    
+
     # SUSE
     elif $GREP -q 'SUSE' /proc/version; then
         echo 'suse'; return
@@ -160,7 +160,11 @@ ventoy_get_os_type() {
         elif $GREP -q 'openEuler' /etc/os-release; then
             echo 'openEuler'; return
         elif $GREP -q 'fuyu' /etc/os-release; then
-            echo 'openEuler'; return   
+            echo 'openEuler'; return
+        elif $GREP -q 'deepin' /etc/os-release; then
+            echo 'debian'; return
+        elif $GREP -q 'chinauos' /etc/os-release; then
+            echo 'debian'; return
         fi
     fi
     
index bf67ec4763fe62b9c9a27d643d8ec7da3a330db8..0c69ec13ad8bd85e9d391ddbe60ed948a8dc0d01 100644 (file)
@@ -127,8 +127,8 @@ ventoy_get_os_type() {
         
     # Deepin : do the same process with debian
     elif $GREP -q '[Dd]eepin' /proc/version; then
-        echo 'debian'; return
-        
+        echo 'debian'; return    
+
     # SUSE
     elif $GREP -q 'SUSE' /proc/version; then
         echo 'suse'; return
@@ -200,6 +200,10 @@ ventoy_get_os_type() {
             echo 'openEuler'; return
         elif $GREP -q 'fuyu' /etc/os-release; then
             echo 'openEuler'; return
+        elif $GREP -q 'deepin' /etc/os-release; then
+            echo 'debian'; return
+        elif $GREP -q 'chinauos' /etc/os-release; then
+            echo 'debian'; return
         fi
     fi