Leah Neukirchen 7381ed2b08 grub: grub.post: set ZPOOL_VDEV_NAME_PATH=YES
Not setting this results in the output of 'zpool status' being
misparsed.

See https://github.com/zfsonlinux/grub/issues/5

Closes: #14801 [via git-merge-pr]
2019-09-29 00:24:38 -04:00

20 lines
319 B
Bash

#!/bin/sh
#
# Kernel hook for GRUB 2.
#
# Arguments passed to this script: $1 pkgname, $2 version.
#
PKGNAME="$1"
VERSION="$2"
export ZPOOL_VDEV_NAME_PATH=YES
if command -v grub-mkconfig >/dev/null 2>&1; then
if [ -d $ROOTDIR/boot/grub ]; then
grub-mkconfig -o $ROOTDIR/boot/grub/grub.cfg
exit $?
fi
fi
exit 0