X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/aad154616c94a35545bbfc2e2063ec5e36a0fe6e..fa7e1d5fa0007e5d1d634cc4e41fdfd3aa381a8e:/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh diff --git a/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh b/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh index 1d971cf..5067532 100644 --- a/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh +++ b/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh @@ -92,10 +92,19 @@ if [ -f /etc/system-release ]; then vtNeedRepo="yes" fi fi -if $GREP -q el8 /proc/version; then + +if $GREP -q 'el[89]' /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 + +echo "vtNeedRepo=$vtNeedRepo" >> $VTLOG + 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