]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
grub: Update some settings.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 12 May 2010 15:27:18 +0000 (17:27 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 12 May 2010 15:27:18 +0000 (17:27 +0200)
Provide a file with default settings and add some
more configuration parameters.

pkgs/core/grub/grub.default [new file with mode: 0644]
pkgs/core/grub/grub.nm

diff --git a/pkgs/core/grub/grub.default b/pkgs/core/grub/grub.default
new file mode 100644 (file)
index 0000000..6200bd8
--- /dev/null
@@ -0,0 +1,27 @@
+# If you change this file, run 'update-grub' afterwards to update
+# /boot/grub/grub.cfg.
+
+GRUB_DEFAULT=0
+GRUB_HIDDEN_TIMEOUT=0
+GRUB_HIDDEN_TIMEOUT_QUIET=true
+GRUB_TIMEOUT=10
+GRUB_DISTRIBUTOR=$(sed 's/ release.*//' /etc/system-release)
+GRUB_CMDLINE_LINUX_DEFAULT="quiet"
+GRUB_CMDLINE_LINUX=""
+
+# Uncomment to disable graphical terminal (grub-pc only)
+#GRUB_TERMINAL=console
+
+# The resolution used on graphical terminal
+# note that you can use only modes which your graphic card supports via VBE
+# you can see them in real GRUB with the command `vbeinfo'
+#GRUB_GFXMODE=640x480
+
+# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
+#GRUB_DISABLE_LINUX_UUID=true
+
+# Uncomment to disable generation of recovery mode menu entries
+GRUB_DISABLE_LINUX_RECOVERY="true"
+
+# Uncomment to get a beep at grub start
+#GRUB_INIT_TUNE="480 440 1"
index f49f71ae1a851a8f491cc85c66b8ef4134139dd3..9a2761b7afa60c52cd01970b15ad3f69c441da4a 100644 (file)
@@ -34,8 +34,8 @@ PKG_URL        = http://www.gnu.org/software/grub/
 PKG_LICENSE    = GPLv2+
 PKG_SUMMARY    = Grand Unified Boot Loader.
 
-PKG_BUILD_DEPS+= autoconf automake bison paxctl
-PKG_DEPS      += freetype ncurses
+PKG_BUILD_DEPS+= autoconf automake bison flex
+PKG_DEPS      += freetype ncurses zlib
 
 define PKG_DESCRIPTION
        GRUB (Grand Unified Boot Loader) is an experimental boot loader \
@@ -51,7 +51,14 @@ QUALITY_AGENT_WHITELIST_NX = /usr/bin/*|/usr/sbin/*
 CFLAGS        += -fno-strict-aliasing
 
 CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc
+       --sysconfdir=/etc \
+       --with-platform=pc \
+       --enable-grub-emu
+
+define STAGE_PREPARE_CMDS
+       cd $(DIR_APP) && \
+               sed -e "s@ GNU/Linux\"@\"@" -i util/grub.d/10_linux.in
+endef
 
 define STAGE_INSTALL
        cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT)