Compare commits
3 Commits
v2.03-beta
...
v2.03-beta
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aa61a839c2 | ||
|
|
bdc4555372 | ||
|
|
643dbc6cd2 |
6
Makefile
6
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 = 7
|
||||
|
||||
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,10 @@ $(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/grub.default && \
|
||||
install -v -d -m 755 $(ROOT)/boot/grub
|
||||
|
||||
test: $(ROOT)
|
||||
@cd $(SRCDIR); \
|
||||
make check
|
||||
|
||||
36
SNAP/grub.default
Normal file
36
SNAP/grub.default
Normal 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
20
SNAP/usher
Executable 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
|
||||
Reference in New Issue
Block a user