diff --git a/Makefile b/Makefile index e6eae4f..2749743 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ DEPENDS = glibc,grep,libzfs,util-linux,xz,zlib ARCH = x86_64 URL = http://www.gnu.org/software/grub/ DESC = GNU GRUB is a Multiboot boot loader. -SNAPVER = 3 +SNAPVER = 5 ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1) TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n') @@ -68,6 +68,9 @@ $(ROOT): $(SRCDIR)/grub-core @cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \ rm -v $(ROOT)/usr/share/info/dir + @install -v -m 644 $(PWD)/SNAP/grub.default \ + $(ROOT)/usr/share/grub.default + test: $(ROOT) @cd $(SRCDIR); \ make check diff --git a/SNAP/grub.default b/SNAP/grub.default new file mode 100644 index 0000000..93d234b --- /dev/null +++ b/SNAP/grub.default @@ -0,0 +1,36 @@ +# grub-mkconfig configuration +# +# More information is available in the documentation. See: +# info -f grub -n 'Simple Configuration' + +# Changes will require updating /boot/grub/grub.cfg. This can +# be done by running: grub-mkconfig -o /boot/grub/grub.cfg + +GRUB_DEFAULT=0 +GRUB_TIMEOUT=5 +GRUB_DISTRIBUTOR="Snaplinux" +GRUB_CMDLINE_LINUX_DEFAULT="" +GRUB_CMDLINE_LINUX="" + +# This option will cause grub to remove the specified memory +# addresses from the memory map passed to the kernel. This is +# generally used to disable damaged regions of RAM. +#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef" + +# Specify the input/output device(s) to be used by GRUB. Multiple +# devices can be separated by spaces. +#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=1024x768x8 + +# 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_RECOVERY="true" + +# Uncomment to get a beep at grub start +#GRUB_INIT_TUNE="480 440 1" diff --git a/SNAP/usher b/SNAP/usher new file mode 100755 index 0000000..7b99caf --- /dev/null +++ b/SNAP/usher @@ -0,0 +1,20 @@ +#!/bin/bash + +set -e + +case $1 in + preinst) + exit 0 + ;; + postinst) + if [ ! -f ${TARGET}/etc/default/grub ]; then + cp ${TARGET}/usr/share/grub/grub.default ${TARGET}/etc/default/grub + fi + ;; + prerm) + exit 0 + ;; + postrm) + exit 0 + ;; +esac