From d0f2da45b2c84fc599851dd1e9416deaa284389a Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Thu, 18 Nov 2010 15:41:16 +0700 Subject: [PATCH] add lilo configuration, /!\ run lilo during package installation /!\ --- a/linux/linux.SlackBuild | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/a/linux/linux.SlackBuild b/a/linux/linux.SlackBuild index 2c1b5b19..eccfd783 100755 --- a/a/linux/linux.SlackBuild +++ b/a/linux/linux.SlackBuild @@ -64,7 +64,22 @@ mv $PKG/boot/$KERNEL_VERSION/{.,}config make modules_install INSTALL_MOD_PATH=$PKG mkdir -p $PKG/install +cat < $PKG/installs/doinst.sh +cp /etc/lilo.conf /etc/lilo.conf.orig +cat <> /etc/lilo.conf +# Linux bootable partition config begins +image = /boot/$KERNEL_VERSION/bzImage + root = /dev/sda1 + label = $KERNEL_VERSION + read-only +# Linux bootable partition config ends +EOLILO + +sed -i "s|default=.*|default=$KERNEL_VERSION|" /etc/lilo.conf + +lilo +EOF cat < $PKG/install/slack-desc $PRGNAM-$(echo $VERSION | tr - _): $PRGNAM-$(echo $VERSION | tr - _) (kernel) $PRGNAM-$(echo $VERSION | tr - _):