]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
Support CentOS-9-Stream (#1335)
authorlongpanda <admin@ventoy.net>
Fri, 24 Dec 2021 02:32:59 +0000 (10:32 +0800)
committerlongpanda <admin@ventoy.net>
Fri, 24 Dec 2021 02:32:59 +0000 (10:32 +0800)
IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh

index aab1e264c992bec00c67149210281b5a8f404058..5067532648da09b441bd24074434044dd3ba7fd2 100644 (file)
@@ -92,7 +92,8 @@ if [ -f /etc/system-release ]; then
         vtNeedRepo="yes"
     fi
 fi
         vtNeedRepo="yes"
     fi
 fi
-if $GREP -q el8 /proc/version; then
+
+if $GREP -q 'el[89]' /proc/version; then
     vtNeedRepo="yes"
 fi
 
     vtNeedRepo="yes"
 fi
 
@@ -102,6 +103,8 @@ if $GREP -i -q Fedora /proc/version; then
     fi
 fi
 
     fi
 fi
 
+echo "vtNeedRepo=$vtNeedRepo" >> $VTLOG
+
 if [ "$vtNeedRepo" = "yes" ]; then
     $BUSYBOX_PATH/cp -a $VTOY_PATH/hook/rhel7/ventoy-repo.sh /lib/dracut/hooks/pre-pivot/99-ventoy-repo.sh
 fi
 if [ "$vtNeedRepo" = "yes" ]; then
     $BUSYBOX_PATH/cp -a $VTOY_PATH/hook/rhel7/ventoy-repo.sh /lib/dracut/hooks/pre-pivot/99-ventoy-repo.sh
 fi