Files
guru/sys-boot/grml-rescueboot/grml-rescueboot-0.6.1.ebuild
Vitaly Zdanevich b9559a7e45 sys-boot/grml-rescueboot: http -> httpS
Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
2024-06-29 05:23:16 +04:00

44 lines
1.0 KiB
Bash

# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit unpacker
DESCRIPTION="grub2 script to add ISO images to the grub2 boot menu"
HOMEPAGE="https://wiki.grml.org/doku.php?id=rescueboot"
SRC_URI="https://deb.grml.org/pool/main/g/${PN}/${PN}_${PV}_all.deb"
S="${WORKDIR}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
sys-boot/grub
"
src_install() {
insinto /etc/default/
doins etc/default/grml-rescueboot
insinto /etc/grub.d/
doins etc/grub.d/42_grml
fperms +x /etc/grub.d/42_grml
}
pkg_postinst() {
einfo "Default folder for ISOs is /boot/grml/"
einfo "You can change it in /etc/default/grml-rescueboot"
einfo "Put some ISOs to the folder,"
einfo "mount your /boot:"
einfo "mount /dev/sda1 /boot/"
einfo "and run"
einfo "grub-mkconfig -o /boot/grub/grub.cfg"
einfo "Not all ISOs are bootable this way"
einfo "Works for Ubuntu, Debian (not all ISOs)"
einfo "https://grml.org/download/"
einfo "but not for Gentoo ISO, see https://bugs.gentoo.org/568464"
}