From e869bc2386e086d04c982cf81ee523d1f148161d Mon Sep 17 00:00:00 2001 From: longpanda Date: Fri, 10 Mar 2023 22:33:53 +0800 Subject: [PATCH] Fix the issue that Fedora Rawhide install media not detected. (#2283) --- IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh b/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh index 7b43a79f..3ab212bd 100644 --- a/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh +++ b/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh @@ -125,6 +125,13 @@ if $GREP -i -q Fedora /proc/version; then 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