diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/sys-boot/grub-config-redcore/files/grub | 63 | ||||
-rw-r--r-- | packages/sys-boot/grub-config-redcore/grub-config-redcore-1337-r3.exheres-0 | 45 | ||||
-rw-r--r-- | packages/sys-boot/grub/grub-2.02-r6.exheres-0 (renamed from packages/sys-boot/grub/grub-2.02-r5.exheres-0) | 0 | ||||
-rw-r--r-- | packages/sys-boot/grub/grub.exlib | 6 |
4 files changed, 112 insertions, 2 deletions
diff --git a/packages/sys-boot/grub-config-redcore/files/grub b/packages/sys-boot/grub-config-redcore/files/grub new file mode 100644 index 0000000..bfa1bf2 --- /dev/null +++ b/packages/sys-boot/grub-config-redcore/files/grub @@ -0,0 +1,63 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ +# +# To populate all changes in this file you need to regenerate your +# grub configuration file afterwards: +# 'grub2-mkconfig -o /boot/grub/grub.cfg' +# +# See the grub info page for documentation on possible variables and +# their associated values. + +GRUB_DISTRIBUTOR="Redcore" + +# Default menu entry +#GRUB_DEFAULT=0 + +# Boot the default entry this many seconds after the menu is displayed +GRUB_TIMEOUT="5" +#GRUB_TIMEOUT_STYLE=menu + +# Append parameters to the linux kernel command line for non-recovery entries +GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=1 splash modprobe.blacklist=vboxvideo" + +# 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="1366x768,1024x768,auto" + +# Set to 'text' to force the Linux kernel to boot in normal text +# mode, 'keep' to preserve the graphics mode set using +# 'GRUB_GFXMODE', 'WIDTHxHEIGHT'['xDEPTH'] to set a particular +# graphics mode, or a sequence of these separated by commas or +# semicolons to try several modes in sequence. +GRUB_GFXPAYLOAD_LINUX="keep" + +# Path to theme spec txt file. +# The starfield is by default provided with use truetype. +# NOTE: when enabling custom theme, ensure you have required font/etc. +GRUB_THEME="/usr/share/grub/themes/redcore/theme.txt" + +# Background image used on graphical terminal. +# Can be in various bitmap formats. +GRUB_BACKGROUND="/usr/share/grub/themes/redcore/terminal_bg.png" + +# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to kernel +#GRUB_DISABLE_LINUX_UUID=true + +# Uncomment to disable generation of recovery mode menu entries +#GRUB_DISABLE_RECOVERY=true + +# Uncomment to disable generation of the submenu and put all choices on +# the top-level menu. +# Besides the visual affect of no sub menu, this makes navigation of the +# menu easier for a user who can't see the screen. +#GRUB_DISABLE_SUBMENU=y + +# Uncomment to play a tone when the main menu is displayed. +# This is useful, for example, to allow users who can't see the screen +# to know when they can make a choice on the menu. +#GRUB_INIT_TUNE="60 800 1" diff --git a/packages/sys-boot/grub-config-redcore/grub-config-redcore-1337-r3.exheres-0 b/packages/sys-boot/grub-config-redcore/grub-config-redcore-1337-r3.exheres-0 new file mode 100644 index 0000000..aa10f04 --- /dev/null +++ b/packages/sys-boot/grub-config-redcore/grub-config-redcore-1337-r3.exheres-0 @@ -0,0 +1,45 @@ +# Copyright 2018 Redcore Linux Project +# Distributed under the terms of the GNU General Public License v2 + +SUMMARY="Redcore Linux Project grub config" +DESCRIPTION="Grub configuration file for Redcore Linux Project" +HOMEPAGE="https://redcorelinux.org" + +LICENCES="GPL-2" +SLOT="0" +PLATFORMS="~amd64" +MYOPTIONS="" + +DEPENDENCIES="" + +WORK="${FILES}" + +src_prepare() { + : +} + +src_configure() { + : +} + +src_compile() { + : +} + +src_install() { + dodir /etc/default + insinto /etc/default + newins "${FILES}"/grub grub.example +} + +pkg_preinst() { + if [[ -f ""${ROOT}"etc/default/grub" ]]; then + edo mv ""${ROOT}"etc/default/grub" ""${ROOT}"etc/default/grub.bak" + fi +} + +pkg_postinst() { + if [[ -f ""${ROOT}"etc/default/grub.bak" ]]; then + edo mv ""${ROOT}"etc/default/grub.bak" ""${ROOT}"etc/default/grub" + fi +} diff --git a/packages/sys-boot/grub/grub-2.02-r5.exheres-0 b/packages/sys-boot/grub/grub-2.02-r6.exheres-0 index b4e922f..b4e922f 100644 --- a/packages/sys-boot/grub/grub-2.02-r5.exheres-0 +++ b/packages/sys-boot/grub/grub-2.02-r6.exheres-0 diff --git a/packages/sys-boot/grub/grub.exlib b/packages/sys-boot/grub/grub.exlib index 3ed4f91..ab8f4a3 100644 --- a/packages/sys-boot/grub/grub.exlib +++ b/packages/sys-boot/grub/grub.exlib @@ -1,4 +1,5 @@ # Copyright 2007 Bryan Østergaard <bryan.ostergaard@gmail.com> +# Copyright 2018 Redcore Linux Project # Distributed under the terms of the GNU General Public License v2 require gnu [ suffix=tar.xz ] \ @@ -45,6 +46,7 @@ DEPENDENCIES=" providers:systemd? ( sys-apps/systemd ) run: efi? ( sys-boot/efibootmgr ) + sys-boot/grub-config-redcore suggestion: sys-boot/os-prober [[ description = [ Ability to add other OSs automatically to grub.cfg via grub-mkconf ] @@ -70,12 +72,12 @@ grub_src_prepare() { autotools_src_prepare if option mkfont; then - edo cp -ax "${ROOT}"/usr/share/fonts/X11/unifont/unifont.pcf.gz unifont.pcf.gz + edo cp -ax "${ROOT}"usr/share/fonts/X11/unifont/unifont.pcf.gz unifont.pcf.gz edo gzip -d unifont.pcf.gz fi if option themes; then - edo cp -ax "${ROOT}"/usr/share/fonts/X11/dejavu/DejaVuSans.ttf DejaVuSans.ttf + edo cp -ax "${ROOT}"usr/share/fonts/X11/dejavu/DejaVuSans.ttf DejaVuSans.ttf fi } |