]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
Fix issue when install Fedora 34 Server Edition
authorlongpanda <admin@ventoy.net>
Mon, 10 May 2021 08:03:40 +0000 (16:03 +0800)
committerlongpanda <admin@ventoy.net>
Mon, 10 May 2021 08:03:40 +0000 (16:03 +0800)
IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh

index 1d971cfd06208e10ea8c90c282c29c2e8cc9a7a3..aab1e264c992bec00c67149210281b5a8f404058 100644 (file)
@@ -96,6 +96,12 @@ if $GREP -q el8 /proc/version; then
     vtNeedRepo="yes"
 fi
 
     vtNeedRepo="yes"
 fi
 
+if $GREP -i -q Fedora /proc/version; then
+    if $GREP -q 'Server Edition' /etc/os-release; then
+        vtNeedRepo="yes"
+    fi
+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
 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