Update ventoy-hook.sh for MX Linux (#2390)

due to a systemd issue, we had to rename initrd-release to initrd_release.
This commit is contained in:
Dolphin Oracle 2023-05-15 00:30:03 -04:00 committed by GitHub
parent 6d5de12f52
commit 82053680bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,10 @@ ventoy_get_debian_distro() {
if $EGREP -q "ID=.*antix|ID=.*mx" /etc/initrd-release; then
echo 'antix'; return
fi
elif [ -e /etc/initrd_release ]; then
if $EGREP -q "ID=.*antix|ID=.*mx" /etc/initrd_release; then
echo 'antix'; return
fi
fi
if [ -e /DISTRO_SPECS ]; then