From 2e742443020ede65794696c8e085e10ee9f60dbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 30 Apr 2017 17:54:08 +0200 Subject: Add linux entry to syslinux --- sys-boot/linux/linux-4.10.13.ebuild | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'sys-boot') diff --git a/sys-boot/linux/linux-4.10.13.ebuild b/sys-boot/linux/linux-4.10.13.ebuild index e126e0d..689d5a2 100644 --- a/sys-boot/linux/linux-4.10.13.ebuild +++ b/sys-boot/linux/linux-4.10.13.ebuild @@ -25,9 +25,6 @@ src_configure() { src_install() { emake modules_install INSTALL_MOD_PATH="${D}" - # These aren't correct anyway - rm "${D}/lib64/modules/${PV}/source" - rm "${D}/lib64/modules/${PV}/build" dodir /boot insinto /boot @@ -35,11 +32,11 @@ src_install() { } src_postinst() { - # TODO add this to syslinux.cnf - true + # Add label to syslinux config + sed -i "/^## Dynamic labels ##$/a LABEL gentoo-${PV}\n\tMENU LABEL Gentoo${PV}\n\tLINUX ../bzlinux-${PV}\n\tAPPEND root=/dev/sda2 rootflags=subvol=@gentoo\n\tINITRD ../initramfs-gentoo\n" /boot/syslinux/syslinux.cnf } src_prerm() { - # TODO remove this from syslinux.cnf - true + # Remove label from syslinux config + sed -i "/^LABEL gentoo-${PV}$/,/^$/d" /boot/syslinux/syslinux.cnf } -- cgit v1.2.3