mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 10:52:57 +02:00
kernel: update to 2.6.31.2. Run grub-mkconfig at post-install time.
--HG-- extra : convert_revision : f9530cb7462f178464c4fd88e11a7eb78c370ba5
This commit is contained in:
parent
4efcc4ac04
commit
ff782d5685
2 changed files with 7 additions and 21 deletions
|
@ -1,28 +1,14 @@
|
||||||
#
|
#
|
||||||
# This script adds an entry to grub's menu.lst file.
|
# This script updates the grub.cfg file for GRUB2.
|
||||||
#
|
#
|
||||||
menulst=boot/grub/menu.lst
|
|
||||||
|
|
||||||
case "${ACTION}" in
|
case "${ACTION}" in
|
||||||
pre)
|
pre)
|
||||||
;;
|
;;
|
||||||
post)
|
post)
|
||||||
if [ ! -f $menulst ]; then
|
if [ -x usr/sbin/grub-mkconfig ]; then
|
||||||
[ ! -d boot/grub ] && mkdir -p boot/grub
|
echo "Updating grub2 configuration file..."
|
||||||
echo "default 0" >> $menulst
|
usr/sbin/grub-mkconfig -o boot/grub/grub.cfg
|
||||||
echo "timeout 5" >> $menulst
|
[ $? -ne 0 ] && exit $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if grep -q "^title XBPS ${PKGNAME}-${VERSION}$" $menulst; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Updating GRUB's menu.lst for kernel-${VERSION}..."
|
|
||||||
( \
|
|
||||||
echo; \
|
|
||||||
echo "title XBPS ${PKGNAME}-${VERSION}"; \
|
|
||||||
echo "kernel /boot/vmlinuz-${VERSION} ro quiet root=LABEL=root"; \
|
|
||||||
echo "initrd /boot/initrd.img-${VERSION}"; \
|
|
||||||
) >> $menulst
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'kernel'
|
# Template file for 'kernel'
|
||||||
pkgname=kernel
|
pkgname=kernel
|
||||||
_kernel_ver=2.6.31
|
_kernel_ver=2.6.31
|
||||||
_kernel_patch_ver=1
|
_kernel_patch_ver=2
|
||||||
#revision=1
|
#revision=1
|
||||||
version=${_kernel_ver}.${_kernel_patch_ver}
|
version=${_kernel_ver}.${_kernel_patch_ver}
|
||||||
patch_files="unionfs-2.5.3_for_2.6.31.diff.gz"
|
patch_files="unionfs-2.5.3_for_2.6.31.diff.gz"
|
||||||
|
@ -14,7 +14,7 @@ make_install_target="modules_install
|
||||||
INSTALL_MOD_PATH=${XBPS_DESTDIR}/${pkgname}-${version}"
|
INSTALL_MOD_PATH=${XBPS_DESTDIR}/${pkgname}-${version}"
|
||||||
short_desc="The Linux kernel and associated stuff (2.6 branch)"
|
short_desc="The Linux kernel and associated stuff (2.6 branch)"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
checksum=090af01804323c29e07f0a550f192468eb96cdba9a13d643b03e648a04af6872
|
checksum=b23aae233afd8b104d45935f293451683f6ce88f258970536898b9ca0bf9bedb
|
||||||
long_desc="
|
long_desc="
|
||||||
This package provides the linux kernel image and the
|
This package provides the linux kernel image and the
|
||||||
kernel modules."
|
kernel modules."
|
||||||
|
|
Loading…
Add table
Reference in a new issue