]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
Fix the issue that Fedora Rawhide install media not detected. (#2283)
authorlongpanda <admin@ventoy.net>
Fri, 10 Mar 2023 14:33:53 +0000 (22:33 +0800)
committerlongpanda <admin@ventoy.net>
Fri, 10 Mar 2023 14:33:53 +0000 (22:33 +0800)
IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh

index 7b43a79f1b3cb540d9a71b23b6b8b8a3fd659998..3ab212bdbb99038a23923ae3158036d1693797a9 100644 (file)
@@ -125,6 +125,13 @@ if $GREP -i -q Fedora /proc/version; then
     fi
 fi
 
     fi
 fi
 
+if $GREP -i -q Fedora /etc/os-release; then
+    if $GREP -q 'Server Edition' /etc/os-release; then
+        vtNeedRepo="yes"
+    fi
+fi
+
+
 echo "vtNeedRepo=$vtNeedRepo" >> $VTLOG
 
 if [ "$vtNeedRepo" = "yes" ]; then
 echo "vtNeedRepo=$vtNeedRepo" >> $VTLOG
 
 if [ "$vtNeedRepo" = "yes" ]; then