From: longpanda Date: Fri, 24 Dec 2021 02:32:59 +0000 (+0800) Subject: Support CentOS-9-Stream (#1335) X-Git-Tag: v1.0.64~2 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/commitdiff_plain/25dc3235224e20040d4fb1369a60e9fe12cb7b3e?ds=sidebyside Support CentOS-9-Stream (#1335) --- diff --git a/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh b/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh index aab1e26..5067532 100644 --- a/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh +++ b/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh @@ -92,7 +92,8 @@ 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 @@ -102,6 +103,8 @@ if $GREP -i -q Fedora /proc/version; then 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