Lines 221-235
Link Here
|
221 |
} |
221 |
} |
222 |
|
222 |
|
223 |
pkg_postinst() { |
223 |
pkg_postinst() { |
224 |
[[ -n ${DONT_MOUNT_BOOT} ]] && return 0 |
224 |
[[ -n ${DONT_MOUNT_BOOT} ]] || setup_boot_dir "${ROOT}"/boot |
225 |
setup_boot_dir "${ROOT}"/boot |
225 |
elog "To install grub files to another device (like a usb stick), just run:" |
226 |
einfo "To install grub files to another device (like a usb stick), just run:" |
226 |
elog " emerge --config =${PF}" |
227 |
einfo " emerge --config =${PF}" |
227 |
elog "Alternately, you can use GRUB_ALT_INSTALLDIR=/path/to/use to tell" |
|
|
228 |
elog "grub where to install in a non-interactive way." |
229 |
|
228 |
} |
230 |
} |
229 |
|
231 |
|
230 |
pkg_config() { |
232 |
pkg_config() { |
231 |
local dir |
233 |
local dir |
|
|
234 |
if [ -z "${GRUB_ALT_INSTALLDIR}" ] || [ ! -d "${GRUB_ALT_INSTALLDIR}" ] |
235 |
then |
232 |
einfo "Enter the directory where you want to setup grub:" |
236 |
einfo "Enter the directory where you want to setup grub:" |
233 |
read dir |
237 |
read dir |
|
|
238 |
else |
239 |
dir=${GRUB_ALT_INSTALLDIR} |
240 |
fi |
234 |
setup_boot_dir "${dir}" |
241 |
setup_boot_dir "${dir}" |
235 |
} |
242 |
} |