update grub
This commit is contained in:
1 parent
e714cfc156
commit
e7c2213cde
2 files changed
+70
-15
No files matched your search
@@ -0,0 +1,63 @@
|
|||||||
|
# GRUB boot loader configuration
|
||||||
|
|
||||||
|
GRUB_DEFAULT=0
|
||||||
|
GRUB_TIMEOUT=5
|
||||||
|
GRUB_DISTRIBUTOR="Turkmen"
|
||||||
|
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"
|
||||||
|
GRUB_CMDLINE_LINUX=""
|
||||||
|
|
||||||
|
# Preload both GPT and MBR modules so that they are not missed
|
||||||
|
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
|
||||||
|
|
||||||
|
# Uncomment to enable booting from LUKS encrypted devices
|
||||||
|
#GRUB_ENABLE_CRYPTODISK=y
|
||||||
|
|
||||||
|
# Set to 'countdown' or 'hidden' to change timeout behavior,
|
||||||
|
# press ESC key to display menu.
|
||||||
|
GRUB_TIMEOUT_STYLE=menu
|
||||||
|
|
||||||
|
# Uncomment to use basic console
|
||||||
|
GRUB_TERMINAL_INPUT=console
|
||||||
|
|
||||||
|
# Uncomment to disable graphical terminal
|
||||||
|
GRUB_TERMINAL_OUTPUT=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 `videoinfo'
|
||||||
|
GRUB_GFXMODE=auto
|
||||||
|
|
||||||
|
# Uncomment to allow the kernel use the same resolution used by grub
|
||||||
|
GRUB_GFXPAYLOAD_LINUX=keep
|
||||||
|
|
||||||
|
# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
|
||||||
|
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
|
||||||
|
#GRUB_DISABLE_LINUX_UUID=true
|
||||||
|
|
||||||
|
# Uncomment to disable generation of recovery mode menu entries
|
||||||
|
GRUB_DISABLE_RECOVERY=true
|
||||||
|
|
||||||
|
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
|
||||||
|
# modes only. Entries specified as foreground/background.
|
||||||
|
#GRUB_COLOR_NORMAL="light-blue/black"
|
||||||
|
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
|
||||||
|
|
||||||
|
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
|
||||||
|
#GRUB_BACKGROUND="/path/to/wallpaper"
|
||||||
|
#GRUB_THEME="/path/to/gfxtheme"
|
||||||
|
|
||||||
|
# Uncomment to get a beep at GRUB start
|
||||||
|
#GRUB_INIT_TUNE="480 440 1"
|
||||||
|
|
||||||
|
# Uncomment to make GRUB remember the last selection. This requires
|
||||||
|
# setting 'GRUB_DEFAULT=saved' above.
|
||||||
|
#GRUB_SAVEDEFAULT=true
|
||||||
|
|
||||||
|
# Uncomment to disable submenus in boot menu
|
||||||
|
#GRUB_DISABLE_SUBMENU=y
|
||||||
|
|
||||||
|
# Probing for other operating systems is disabled for security reasons. Read
|
||||||
|
# documentation on GRUB_DISABLE_OS_PROBER, if still want to enable this
|
||||||
|
# functionality install os-prober and uncomment to detect and include other
|
||||||
|
# operating systems.
|
||||||
|
#GRUB_DISABLE_OS_PROBER=false
|
||||||
+7
-15
@@ -1,16 +1,18 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
name='grub'
|
name='grub'
|
||||||
release='3'
|
release='4'
|
||||||
version='2.12'
|
version='2.14'
|
||||||
url='https://ftp.gnu.org/gnu/grub'
|
url='https://ftp.gnu.org/gnu/grub'
|
||||||
description='GNU GRand Unified Bootloader'
|
description='GNU GRand Unified Bootloader'
|
||||||
email='parduscix@yandex.ru'
|
email='parduscix@yandex.ru'
|
||||||
maintainer='sulincix'
|
maintainer='sulincix'
|
||||||
license=('GPLv3')
|
license=('GPLv3')
|
||||||
source=("https://ftp.gnu.org/gnu/grub/grub-$version.tar.xz")
|
source=("https://ftp.gnu.org/gnu/grub/grub-$version.tar.xz"
|
||||||
|
"grub.default")
|
||||||
depends=(lvm2)
|
depends=(lvm2)
|
||||||
makedepends=()
|
makedepends=()
|
||||||
md5sums=('60c564b1bdc39d8e43b3aab4bc0fb140')
|
sha256sums=('bc8d3c73535b8838d8c8e2654d73edc4e6ae8c8acdb45d5df5dc9a1547446d43'
|
||||||
|
'SKIP')
|
||||||
group=(sys.boot)
|
group=(sys.boot)
|
||||||
uses=(efi bios)
|
uses=(efi bios)
|
||||||
uses_extra=(ia32)
|
uses_extra=(ia32)
|
||||||
@@ -79,17 +81,7 @@ package(){
|
|||||||
done
|
done
|
||||||
# default grub config
|
# default grub config
|
||||||
mkdir -p $DESTDIR/etc/default $DESTDIR/usr/bin/
|
mkdir -p $DESTDIR/etc/default $DESTDIR/usr/bin/
|
||||||
{
|
install -D -m0644 ./grub.default ${DESTDIR}/etc/default/grub
|
||||||
echo 'GRUB_DISTRIBUTOR=""'
|
|
||||||
echo 'GRUB_TERMINAL_OUTPUT=console'
|
|
||||||
echo 'GRUB_CMDLINE_LINUX_DEFAULT="quiet"'
|
|
||||||
echo 'GRUB_CMDLINE_LINUX=""'
|
|
||||||
echo 'GRUB_DEFAULT=0'
|
|
||||||
echo 'GRUB_TIMEOUT=5'
|
|
||||||
echo 'GRUB_DISABLE_SUBMENU=y'
|
|
||||||
echo 'GRUB_DISABLE_OS_PROBER=true'
|
|
||||||
echo 'GRUB_DISABLE_RECOVERY=true'
|
|
||||||
} > $DESTDIR/etc/default/grub
|
|
||||||
echo "#!/bin/sh" > $DESTDIR/usr/bin/update-grub
|
echo "#!/bin/sh" > $DESTDIR/usr/bin/update-grub
|
||||||
echo "grub-mkconfig -o /boot/grub/grub.cfg" >> $DESTDIR/usr/bin/update-grub
|
echo "grub-mkconfig -o /boot/grub/grub.cfg" >> $DESTDIR/usr/bin/update-grub
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user