From 89a34bac187b816f94f21c7d537ccc5d2390e3a6 Mon Sep 17 00:00:00 2001 From: longpanda Date: Sat, 25 Sep 2021 11:22:55 +0800 Subject: [PATCH] optimization for deepin/uos latest release --- IMG/cpio/ventoy/ventoy_chain.sh | 10 +++++++--- IMG/cpio/ventoy/ventoy_loop.sh | 8 ++++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/IMG/cpio/ventoy/ventoy_chain.sh b/IMG/cpio/ventoy/ventoy_chain.sh index 3b12922..7b10a96 100644 --- a/IMG/cpio/ventoy/ventoy_chain.sh +++ b/IMG/cpio/ventoy/ventoy_chain.sh @@ -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 diff --git a/IMG/cpio/ventoy/ventoy_loop.sh b/IMG/cpio/ventoy/ventoy_loop.sh index bf67ec4..0c69ec1 100644 --- a/IMG/cpio/ventoy/ventoy_loop.sh +++ b/IMG/cpio/ventoy/ventoy_loop.sh @@ -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 -- 2.47.3