From 491f0bea8a56fdb097884187d99c5e25191d481c Mon Sep 17 00:00:00 2001 From: longpanda Date: Mon, 10 May 2021 16:03:40 +0800 Subject: [PATCH] Fix issue when install Fedora 34 Server Edition --- IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh b/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh index 1d971cf..aab1e26 100644 --- a/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh +++ b/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh @@ -96,6 +96,12 @@ if $GREP -q el8 /proc/version; then 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 -- 2.47.3