We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8fe1c7 commit 361e797Copy full SHA for 361e797
zfsbootmenu/lib/zfsbootmenu-core.sh
@@ -2068,10 +2068,16 @@ zreport() {
2068
if [ -f "/VERSION" ] ; then
2069
read -r INITRD_VERSION < /VERSION
2070
INITRD_VERSION="mkinitcpio ${INITRD_VERSION}"
2071
+ # legacy dracut
2072
elif [ -f /etc/initrd-release ] ; then
2073
# shellcheck disable=SC1091
2074
source /etc/initrd-release
2075
[ -n "${DRACUT_VERSION}" ] && INITRD_VERSION="Dracut ${DRACUT_VERSION}"
2076
+ # dracut-ng
2077
+ elif [ -f /usr/lib/initrd-release ] ; then
2078
+ # shellcheck disable=SC1091
2079
+ source /usr/lib/initrd-release
2080
+ [ -n "${VERSION_ID}" ] && INITRD_VERSION="Dracut ${VERSION_ID}"
2081
fi
2082
2083
echo -e "${ZBM_PRETTY_NAME} ${ZBM_VERSION} with ${INITRD_VERSION} and ${UNAME}"
0 commit comments