20 lines
319 B
Bash
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
|