Index: grub-0.97-r6.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-0.97-r6.ebuild,v retrieving revision 1.2 diff -u -b -B -r1.2 grub-0.97-r6.ebuild --- grub-0.97-r6.ebuild 4 Jun 2008 20:44:15 -0000 1.2 +++ grub-0.97-r6.ebuild 21 Jun 2008 05:21:28 -0000 @@ -221,15 +221,22 @@ } pkg_postinst() { - [[ -n ${DONT_MOUNT_BOOT} ]] && return 0 - setup_boot_dir "${ROOT}"/boot - einfo "To install grub files to another device (like a usb stick), just run:" - einfo " emerge --config =${PF}" + [[ -n ${DONT_MOUNT_BOOT} ]] || setup_boot_dir "${ROOT}"/boot + elog "To install grub files to another device (like a usb stick), just run:" + elog " emerge --config =${PF}" + elog "Alternately, you can use GRUB_ALT_INSTALLDIR=/path/to/use to tell" + elog "grub where to install in a non-interactive way." + } pkg_config() { local dir + if [ -z "${GRUB_ALT_INSTALLDIR}" ] || [ ! -d "${GRUB_ALT_INSTALLDIR}" ] + then einfo "Enter the directory where you want to setup grub:" read dir + else + dir=${GRUB_ALT_INSTALLDIR} + fi setup_boot_dir "${dir}" }