Fix issue when install Fedora 34 Server Edition

This commit is contained in:
longpanda 2021-05-10 16:03:40 +08:00
parent 47e77e003c
commit 491f0bea8a
1 changed files with 6 additions and 0 deletions

View File

@ -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