Skip to content

Commit

Permalink
Support CentOS-9-Stream (#1335)
Browse files Browse the repository at this point in the history
  • Loading branch information
ventoy committed Dec 24, 2021
1 parent 446597d commit 25dc323
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion IMG/cpio/ventoy/hook/rhel7/ventoy-hook.sh
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 25dc323

Please sign in to comment.