From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- sys-boot/systemrescuecd-x86-grub/Manifest | 5 ++ .../files/systemrescuecd.default | 21 +++++++ .../files/systemrescuecd.grub | 64 ++++++++++++++++++++++ sys-boot/systemrescuecd-x86-grub/metadata.xml | 17 ++++++ .../systemrescuecd-x86-grub-0.1.ebuild | 32 +++++++++++ 5 files changed, 139 insertions(+) create mode 100644 sys-boot/systemrescuecd-x86-grub/Manifest create mode 100644 sys-boot/systemrescuecd-x86-grub/files/systemrescuecd.default create mode 100644 sys-boot/systemrescuecd-x86-grub/files/systemrescuecd.grub create mode 100644 sys-boot/systemrescuecd-x86-grub/metadata.xml create mode 100644 sys-boot/systemrescuecd-x86-grub/systemrescuecd-x86-grub-0.1.ebuild (limited to 'sys-boot/systemrescuecd-x86-grub') diff --git a/sys-boot/systemrescuecd-x86-grub/Manifest b/sys-boot/systemrescuecd-x86-grub/Manifest new file mode 100644 index 000000000000..f742c572d412 --- /dev/null +++ b/sys-boot/systemrescuecd-x86-grub/Manifest @@ -0,0 +1,5 @@ +AUX systemrescuecd.default 845 SHA256 63831f0da197cd3c4da52540ae23df67e4722a5bab34206718dc06a98112ae70 SHA512 81aebf9999cfe82696fc72f520fc88355fc8d3077a1c76858175f3367d33119db96c6cb639935b01d32ab1f1d0aaa1c41b7ea3b12e1c732e474de519cb50b2d6 WHIRLPOOL 909fbfcafc118e5abcf4d5e1b6452dce321903d0f89f162acd236f2216f01b10f8f1487b9c41924d29c42ff44cec481a451ae851406bc9b929967d9ec09d79de +AUX systemrescuecd.grub 1910 SHA256 3cf041d995310ea349592d714cf490e2cc5bd5b2dabfabcc77503675cae7c145 SHA512 34c8f4445589d58ddf0e0088184bfdc56f8fab19bbffc2cf0ac2646710eefe8b654066de196b3eb18377198dba38a2fa4b9a9b89f130a15a3ac2a94b75c7366e WHIRLPOOL 918cc10682f1c8fa49a76a245458e18774ed7786cbcf97af7adcd73c7712f327e02774d9e8524788f06bcb8fb0faa4d7dc083a068fb59cd0ee0fae6c76c631c3 +EBUILD systemrescuecd-x86-grub-0.1.ebuild 759 SHA256 869de08b6c51773a2679195f067848f0c6af68101cf6dc470bcc4b347e5b044a SHA512 43ea43f4532f6ef3a69089aef6ca286fba2ebfee6c1fec9295c5fb37eb6c1c350de67fd37ccb8c2c428ed7cc2c8a18ca1cc83a4db2ea21f4dbf71fbf0e8d7900 WHIRLPOOL c9b123c0d5caa864d586b74f3939a8fba2315682a9fb6ad09b572705dc62eedc526a4ea89d77b679cdaea9f3c69fa423e7f2861e29006e218f06d60c7e2347bf +MISC ChangeLog 989 SHA256 c9bdc9fa79db4b6cdfec802dc3495909c1a6edcedfc7ab9c130a2b3aec94dda3 SHA512 6290427004612ce0a92ffcb70926b8b4b7775b152532252309fe8021cfc6ba8068165988a8a533436cf33deef574ef316155cb8f51d23d7b8fbd4887491dcfe6 WHIRLPOOL 9c63ebfe6853d49db31205a5e90fbbdf2660cde0434e2e33ca5d2449a119130a0e04115af482168625ac26fd28322e61e999145367cbc1055a69d18606129d52 +MISC metadata.xml 610 SHA256 4eefce26d0916183c95f484e5852fa3f426da6a4306e9914327dd5e82d953879 SHA512 84101ca441d24894df8063a2d82ecf7f516bb6c3255d6b147b1448e27874f2ff634c5822f925a6648010fa83c6e75d60159237a44b99cd5a031e19174a17295d WHIRLPOOL b21ad5b66b0ee635b010eba5ca7e9911a7cdce4a2172f2b35a36288400c79f904a8f51a26534c2f3400bf6fe4d43fcac59271e8b0ec90182bc89d69d098f8985 diff --git a/sys-boot/systemrescuecd-x86-grub/files/systemrescuecd.default b/sys-boot/systemrescuecd-x86-grub/files/systemrescuecd.default new file mode 100644 index 000000000000..d9b2d0b8db7d --- /dev/null +++ b/sys-boot/systemrescuecd-x86-grub/files/systemrescuecd.default @@ -0,0 +1,21 @@ +# Here you can set custom bootoptions for the SystemRescueCD +# +# You can add for example in a space separated list: +# setkmap=xx: which defines the keymap to load (example: setkmap=de) +# dostartx: load the X.Org graphical environment and launch Xfce +# docache: causes the iso file to be fully loaded into memory +# this requires 400MB of memory to cache everything +# doload=xxx: loads needed kernel modules (example: doload=3c59x,e1000) +# noload=xxx: prevents loading kernel modules +# nomodeset: do not load the Kernel-Mode-Setting video driver +# +# Example: +# SRCD_BOOTOPTIONS="setkmap=de docache dostartx" +# +# For all available bootoptions see: +# http://www.sysresccd.org/Sysresccd-manual-en_Booting_the_CD-ROM +# +# Note: +# After changing this, you must update your grub configuration file, to take effect + +SRCD_BOOTOPTIONS="" diff --git a/sys-boot/systemrescuecd-x86-grub/files/systemrescuecd.grub b/sys-boot/systemrescuecd-x86-grub/files/systemrescuecd.grub new file mode 100644 index 000000000000..e9695c4b4821 --- /dev/null +++ b/sys-boot/systemrescuecd-x86-grub/files/systemrescuecd.grub @@ -0,0 +1,64 @@ +#!/bin/sh +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +. /usr/share/grub/grub-mkconfig_lib + +if [ -r /etc/default/systemrescuecd ] ; then + . /etc/default/systemrescuecd +fi + +# srcd = path of newest link to iso of systemrescuecd, created by the ebuild +# of systemrescuecd-x86 +srcd="/usr/share/systemrescuecd/systemrescuecd-x86-newest.iso" + +longname="SystemRescueCD" +bootops=")" + +if [ ! -z "${SRCD_BOOTOPTIONS}" ]; then + bootops=" with bootoptions)" +fi + +if [ -f "${srcd}" ]; then + + device=$(${grub_probe} --target=device "${srcd}") + path=$(make_system_path_relative_to_its_root "${srcd}") + grub_string=$(prepare_grub_to_access_device "${device}" | grub_add_tab | grub_add_tab) + + gettext_printf "Found %s on %s\n" "${longname}" "${device}" >&2 + onstr=$(gettext_printf "(on %s)" "${device}") + + cat << EOF +submenu "${longname}" --class submenu { + menuentry "${longname} (32bit standard${bootops}" --class rescue { +${grub_string} + set isofile=${srcd} + loopback loop \${isofile} + linux (loop)/isolinux/rescue32 ${SRCD_BOOTOPTIONS} isoloop=\${isofile} + initrd (loop)/isolinux/initram.igz + } + menuentry "${longname} (64bit standard${bootops}" --class rescue { +${grub_string} + set isofile=${srcd} + loopback loop \${isofile} + linux (loop)/isolinux/rescue64 ${SRCD_BOOTOPTIONS} isoloop=\${isofile} + initrd (loop)/isolinux/initram.igz + } + menuentry "${longname} (32bit alternative${bootops}" --class rescue { +${grub_string} + set isofile=${srcd} + loopback loop \${isofile} + linux (loop)/isolinux/altker32 ${SRCD_BOOTOPTIONS} isoloop=\${isofile} + initrd (loop)/isolinux/initram.igz + } + menuentry "${longname} (64bit alternative${bootops}" --class rescue { +${grub_string} + set isofile=${srcd} + loopback loop \${isofile} + linux (loop)/isolinux/altker64 ${SRCD_BOOTOPTIONS} isoloop=\${isofile} + initrd (loop)/isolinux/initram.igz + } +} +EOF + +fi diff --git a/sys-boot/systemrescuecd-x86-grub/metadata.xml b/sys-boot/systemrescuecd-x86-grub/metadata.xml new file mode 100644 index 000000000000..2e146c34fc2e --- /dev/null +++ b/sys-boot/systemrescuecd-x86-grub/metadata.xml @@ -0,0 +1,17 @@ + + + + + gentoobugs@milaw.biz + Michael Lange + Accepts only mails from Gentoo's Bugzilla + + + mgorny@gentoo.org + Michał Górny + + + This package adds menu entries in GRUB for the SystemRescueCD. You can + add custom bootoptions for SystemRescueCD in a special config file. + + diff --git a/sys-boot/systemrescuecd-x86-grub/systemrescuecd-x86-grub-0.1.ebuild b/sys-boot/systemrescuecd-x86-grub/systemrescuecd-x86-grub-0.1.ebuild new file mode 100644 index 000000000000..3a5d11ae858b --- /dev/null +++ b/sys-boot/systemrescuecd-x86-grub/systemrescuecd-x86-grub-0.1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +DESCRIPTION="Grub menu entries for the .iso image of systemrescuecd-x86" +HOMEPAGE="http://www.sysresccd.org/" +SRC_URI="" + +LICENSE="GPL-2" +SLOT=0 +KEYWORDS="~amd64 ~x86" +IUSE="" + +S=${WORKDIR} + +RDEPEND="app-admin/systemrescuecd-x86 + sys-boot/grub" + +src_install() { + exeinto /etc/grub.d + newexe "${FILESDIR}"/systemrescuecd.grub 39_systemrescuecd + + insinto /etc/default + newins "${FILESDIR}"/systemrescuecd.default systemrescuecd +} + +pkg_postinst() { + elog "To add the menu entries for systemrescuecd to grub, you should now run" + elog " grub-mkconfig -o /boot/grub/grub.cfg" + elog "You can set custom bootoptions in /etc/default/systemrescuecd" +} -- cgit v1.2.3