add lilo configuration, /!\ run lilo during package installation /!\
This commit is contained in:
parent
7b716c32a4
commit
d0f2da45b2
1 changed files with 15 additions and 0 deletions
|
@ -64,7 +64,22 @@ mv $PKG/boot/$KERNEL_VERSION/{.,}config
|
|||
make modules_install INSTALL_MOD_PATH=$PKG
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat <<EOF > $PKG/installs/doinst.sh
|
||||
cp /etc/lilo.conf /etc/lilo.conf.orig
|
||||
cat <<EOLILO >> /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 <<EOF > $PKG/install/slack-desc
|
||||
$PRGNAM-$(echo $VERSION | tr - _): $PRGNAM-$(echo $VERSION | tr - _) (kernel)
|
||||
$PRGNAM-$(echo $VERSION | tr - _):
|
||||
|
|
Loading…
Reference in a new issue