Skip to content

Commit 361e797

Browse files
committed
zfsbootmenu: add dracut-ng detection to zreport
1 parent f8fe1c7 commit 361e797

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

zfsbootmenu/lib/zfsbootmenu-core.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2068,10 +2068,16 @@ zreport() {
20682068
if [ -f "/VERSION" ] ; then
20692069
read -r INITRD_VERSION < /VERSION
20702070
INITRD_VERSION="mkinitcpio ${INITRD_VERSION}"
2071+
# legacy dracut
20712072
elif [ -f /etc/initrd-release ] ; then
20722073
# shellcheck disable=SC1091
20732074
source /etc/initrd-release
20742075
[ -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}"
20752081
fi
20762082

20772083
echo -e "${ZBM_PRETTY_NAME} ${ZBM_VERSION} with ${INITRD_VERSION} and ${UNAME}"

0 commit comments

Comments
 (0)