From 73d156909c1cd9641e04c1556a900ff3703a5266 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 13 Aug 2017 16:41:57 +0100 Subject: sys-boot/grub-config-redcore : split /etc/default/grub out of main grub package --- sys-boot/grub-config-redcore/files/grub | 63 ++++++++++++++++++++++ .../grub-config-redcore-1708.ebuild | 30 +++++++++++ sys-boot/grub/files/grub.default-3 | 63 ---------------------- sys-boot/grub/grub-2.02-r1708.ebuild | 4 +- 4 files changed, 94 insertions(+), 66 deletions(-) create mode 100644 sys-boot/grub-config-redcore/files/grub create mode 100644 sys-boot/grub-config-redcore/grub-config-redcore-1708.ebuild delete mode 100644 sys-boot/grub/files/grub.default-3 (limited to 'sys-boot') diff --git a/sys-boot/grub-config-redcore/files/grub b/sys-boot/grub-config-redcore/files/grub new file mode 100644 index 00000000..7d291d8f --- /dev/null +++ b/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 scsi_mod.use_blk_mq=1 loglevel=1 console=tty1 splash=silent,theme:default 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/sys-boot/grub-config-redcore/grub-config-redcore-1708.ebuild b/sys-boot/grub-config-redcore/grub-config-redcore-1708.ebuild new file mode 100644 index 00000000..7e817dc1 --- /dev/null +++ b/sys-boot/grub-config-redcore/grub-config-redcore-1708.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +DESCRIPTION="Redcore Linux GRUB configuration files" +HOMEPAGE="" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="sys-boot/grub" + +S="${FILESDIR}" + +src_install() { + dodir "/etc/default" || die + insinto "/etc/default" || die + doins -r "${S}/"* || die +} + +pkg_preinst() { + if [[ -f ""${ROOT}"etc/default/grub" ]]; then + mv ""${ROOT}"etc/default/grub" ""${ROOT}"etc/default/grub.backup" + fi +} diff --git a/sys-boot/grub/files/grub.default-3 b/sys-boot/grub/files/grub.default-3 deleted file mode 100644 index 7d291d8f..00000000 --- a/sys-boot/grub/files/grub.default-3 +++ /dev/null @@ -1,63 +0,0 @@ -# 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 scsi_mod.use_blk_mq=1 loglevel=1 console=tty1 splash=silent,theme:default 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/sys-boot/grub/grub-2.02-r1708.ebuild b/sys-boot/grub/grub-2.02-r1708.ebuild index 44db1517..dacfc3d5 100644 --- a/sys-boot/grub/grub-2.02-r1708.ebuild +++ b/sys-boot/grub/grub-2.02-r1708.ebuild @@ -82,6 +82,7 @@ DEPEND="${RDEPEND} sys-devel/bison sys-apps/help2man sys-apps/texinfo + sys-boot/grub-config-redcore fonts? ( media-libs/freetype:2 ) grub_platforms_xen? ( app-emulation/xen-tools:= ) grub_platforms_xen-32? ( app-emulation/xen-tools:= ) @@ -274,9 +275,6 @@ src_install() { if use multislot; then mv "${ED%/}"/usr/share/info/grub{,2}.info || die fi - - insinto /etc/default - newins "${FILESDIR}"/grub.default-3 grub } pkg_postinst() { -- cgit v1.2.3