4 Commits

Author SHA1 Message Date
Jay Larson
aa61a839c2 Added boot/grub to package 2017-05-31 10:43:24 -05:00
Jay Larson
bdc4555372 The following changes were made:
* Moved grub.default to correct location
  * Built with stripping re-enabled, should only --strip-debug on grub modules
2017-05-21 10:27:28 -05:00
Jay Larson
643dbc6cd2 The following changes were made:
* Added etc/default/grub
  * Added usher to manage etc/default/grub
2017-05-16 14:14:40 -05:00
Jay Larson
22cf05c4f2 Changed dependency from zfs to libzfs 2017-03-30 16:21:41 -05:00
3 changed files with 62 additions and 2 deletions

View File

@@ -8,11 +8,11 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
DEPENDS = glibc,grep,util-linux,xz,zfs,zlib DEPENDS = glibc,grep,libzfs,util-linux,xz,zlib
ARCH = x86_64 ARCH = x86_64
URL = http://www.gnu.org/software/grub/ URL = http://www.gnu.org/software/grub/
DESC = GNU GRUB is a Multiboot boot loader. DESC = GNU GRUB is a Multiboot boot loader.
SNAPVER = 2 SNAPVER = 7
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1) ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n') TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
@@ -68,6 +68,10 @@ $(ROOT): $(SRCDIR)/grub-core
@cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \ @cd $(SRCDIR) && make install DESTDIR=$(ROOT) && \
rm -v $(ROOT)/usr/share/info/dir rm -v $(ROOT)/usr/share/info/dir
@install -v -m 644 $(PWD)/SNAP/grub.default \
$(ROOT)/usr/share/grub/grub.default && \
install -v -d -m 755 $(ROOT)/boot/grub
test: $(ROOT) test: $(ROOT)
@cd $(SRCDIR); \ @cd $(SRCDIR); \
make check make check

36
SNAP/grub.default Normal file
View File

@@ -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"

20
SNAP/usher Executable file
View File

@@ -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