# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 inherit mount-boot DESCRIPTION="Static GNU GRUB boot loader" HOMEPAGE="https://www.gnu.org/software/grub/" SRC_URI="mirror://gentoo/grub-static-${PV}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="-* amd64 ~x86" IUSE="" DEPEND="! /dev/null fi } pkg_postinst() { [[ "${ROOT}" != "/" ]] && return 0 [[ -n ${DONT_MOUNT_BOOT} ]] && return 0 setup_boot_dir /boot einfo "To install grub files to another device (like a usb stick), just run:" einfo " emerge --config =${PF}" } pkg_config() { local dir einfo "Enter the directory where you want to setup grub:" read dir setup_boot_dir "${dir}" }