summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2008-07-07 08:48:08 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2008-07-07 08:48:08 +0000
commit37de8c43e720342097216478d52062a19d8e5dbe (patch)
tree2eb9bbac8d233de2b9c49e43617bf20baffd9b68 /sys-boot
parentstable x86, security bug 230593 (diff)
downloadgentoo-2-37de8c43e720342097216478d52062a19d8e5dbe.tar.gz
gentoo-2-37de8c43e720342097216478d52062a19d8e5dbe.tar.bz2
gentoo-2-37de8c43e720342097216478d52062a19d8e5dbe.zip
Update the pkg_postinst message again, so that anybody with DONT_MOUNT_BOOT gets reminded to run emerge --config as well, so everything is in sync.
(Portage version: 2.2_rc1/cvs/Linux 2.6.26-rc4-00103-g1beee8d x86_64)
Diffstat (limited to 'sys-boot')
-rw-r--r--sys-boot/grub/ChangeLog7
-rw-r--r--sys-boot/grub/grub-0.97-r6.ebuild20
2 files changed, 22 insertions, 5 deletions
diff --git a/sys-boot/grub/ChangeLog b/sys-boot/grub/ChangeLog
index 4c9d7c181c5e..35a17f774e55 100644
--- a/sys-boot/grub/ChangeLog
+++ b/sys-boot/grub/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-boot/grub
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/ChangeLog,v 1.98 2008/07/06 22:55:44 opfer Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/ChangeLog,v 1.99 2008/07/07 08:48:08 robbat2 Exp $
+
+ 07 Jul 2008; Robin H. Johnson <robbat2@gentoo.org> grub-0.97-r6.ebuild:
+ Update the pkg_postinst message again, so that anybody with
+ DONT_MOUNT_BOOT gets reminded to run emerge --config as well, so
+ everything is in sync.
06 Jul 2008; Christian Faulhammer <opfer@gentoo.org> grub-0.97-r6.ebuild:
stable x86, bug 230836
diff --git a/sys-boot/grub/grub-0.97-r6.ebuild b/sys-boot/grub/grub-0.97-r6.ebuild
index dad6421ca3e3..84521e0fbe97 100644
--- a/sys-boot/grub/grub-0.97-r6.ebuild
+++ b/sys-boot/grub/grub-0.97-r6.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-0.97-r6.ebuild,v 1.7 2008/07/06 22:55:44 opfer Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/grub-0.97-r6.ebuild,v 1.8 2008/07/07 08:48:08 robbat2 Exp $
# XXX: we need to review menu.lst vs grub.conf handling. We've been converting
# all systems to grub.conf (and symlinking menu.lst to grub.conf), but
@@ -221,13 +221,25 @@ setup_boot_dir() {
if [[ ! -e ${dir}/default ]] ; then
grub-set-default --root-directory="${boot_dir}" default
fi
+ einfo "Grub has been installed to ${boot_dir} successfully."
}
pkg_postinst() {
- [[ -n ${DONT_MOUNT_BOOT} ]] || setup_boot_dir "${ROOT}"/boot
- elog "To install grub files to another device (like a usb stick), just run:"
+ if [[ -n ${DONT_MOUNT_BOOT} ]]; then
+ elog "WARNING: you have DONT_MOUNT_BOOT in effect, so you must apply"
+ elog "the following instructions for your /boot!"
+ elog "Neglecting to do so may cause your system to fail to boot!"
+ elog
+ else
+ setup_boot_dir "${ROOT}"/boot
+ # Trailing output because if this is run from pkg_postinst, it gets mixed into
+ # the other output.
+ einfo ""
+ fi
+ elog "To interactively install grub files to another device such as a USB"
+ elog "stick, just run the following and specify the directory as prompted:"
elog " emerge --config =${PF}"
- elog "Alternately, you can use GRUB_ALT_INSTALLDIR=/path/to/use to tell"
+ elog "Alternately, you can export GRUB_ALT_INSTALLDIR=/path/to/use to tell"
elog "grub where to install in a non-interactive way."
}