From 25dc3235224e20040d4fb1369a60e9fe12cb7b3e Mon Sep 17 00:00:00 2001 From: longpanda Date: Fri, 24 Dec 2021 10:32:59 +0800 Subject: [PATCH] Support CentOS-9-Stream (#1335) --- IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh b/IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh index aab1e264..50675326 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