Skip to content

Commit

Permalink
Update ventoy-hook.sh for MX Linux (#2390)
Browse files Browse the repository at this point in the history
due to a systemd issue, we had to rename initrd-release to initrd_release.
  • Loading branch information
dolphinoracle authored May 15, 2023
1 parent 6d5de12 commit 8205368
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions IMG/cpio/ventoy/hook/debian/ventoy-hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8205368

Please sign in to comment.