[arch-commits] Commit in grub2/trunk (grub2.install)
Ronald van Haren
ronald at archlinux.org
Tue Mar 16 14:49:00 UTC 2010
Date: Tuesday, March 16, 2010 @ 10:49:00
Author: ronald
Revision: 72462
upgpkg: grub2 1.98-2
let's not overwrite existing grub.cfg files...
Modified:
grub2/trunk/grub2.install
---------------+
grub2.install | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
Modified: grub2.install
===================================================================
--- grub2.install 2010-03-16 14:31:16 UTC (rev 72461)
+++ grub2.install 2010-03-16 14:49:00 UTC (rev 72462)
@@ -1,8 +1,9 @@
post_install() {
+if [ ! -f /boot/grub/grub.cfg ]; then
echo -n "Generating grub.cfg config file... "
grub-mkconfig -o /boot/grub/grub.cfg 2> /dev/null
echo "done."
-
+fi
cat << EOF
Please verify the config file installed in /boot/grub/grub.cfg
For more information and additional config settings please see http://wiki.archlinux.org/index.php/GRUB2
@@ -14,7 +15,4 @@
}
-post_upgrade() {
- post_install
-}
More information about the arch-commits
mailing list