Skip to content
Snippets Groups Projects
Commit eb85a043 authored by Seblu's avatar Seblu
Browse files

bump linux 3.18

- regression on i915
parent 626cea68
No related branches found
No related tags found
No related merge requests found
......@@ -3,13 +3,17 @@
pkgname=linux-seblu
pkgver=3.17
pkgrel=3
pkgver=3.18
pkgrel=1
arch=('x86_64')
license=('GPL2')
url='http://www.kernel.org'
options=('!strip')
makedepends=('kmod' 'bc' 'git')
makedepends=('git' 'bc')
depends=('coreutils' 'linux-firmware' 'kmod' 'mkinitcpio')
optdepends=('kernel-install-compat: Install kernel in /boot'
'kernel-install-grub: Regen grub config')
install=linux-seblu.install
source=("git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git#tag=v${pkgver/_/-}"
"config.$CARCH.${pkgver/_/-}")
md5sums=('SKIP' 'SKIP')
......@@ -65,8 +69,6 @@ package() {
pkgver=$(make kernelversion|tr '-' '_')
provides=("linux=$pkgver" "linux-headers=$pkgver")
conflicts=("linux-seblu-$pkgver")
depends=('coreutils' 'linux-firmware' 'kmod' 'mkinitcpio')
install='install'
msg2 "Packing kernel release: $kernrel"
msg2 "Packing kernel version: $pkgver"
......@@ -79,10 +81,6 @@ package() {
# and it's done by kernel-install in .install
make INSTALL_MOD_PATH="$pkgdir/usr" DEPMOD=/bin/true modules_install
# gzip -9 all modules to safe 100MB of space
msg2 'Gzip modules harder'
find "$pkgdir" -name '*.ko' -exec gzip -9 {} \;
# copy headers
install_sources
......
This diff is collapsed.
......@@ -6,7 +6,7 @@ post_install () {
version=${1%-*}
version=${version/_/-}-seblu
echo "==> Calling kernel-install add $version ..."
kernel-install add "$version" "/usr/lib/kernel/vmlinuz-$version"
kernel-install add "$version" "/usr/lib/kernel/vmlinuz-$version" || echo "kernel-install not exits zero!"
fi
}
......@@ -20,6 +20,16 @@ pre_upgrade() {
# arg 2: the old package version
post_upgrade() {
post_install "$1"
# advertise if you update the current running kernel
version=${1%-*}
version=${version/_/-}-seblu
if [[ "$version" == "$(uname -r)" ]]; then
echo '********************************************************************************'
echo '********************************************************************************'
echo '****** YOU HAVE UPDATED THE CURRENTLY RUNNING KERNEL ** REBOOT IMMEDIATLY ******'
echo '********************************************************************************'
echo '********************************************************************************'
fi
}
# arg 1: the old package version
......@@ -28,7 +38,7 @@ pre_remove() {
version=${1%-*}
version=${version/_/-}-seblu
echo "==> kernel-install remove $version"
kernel-install remove "$version"
kernel-install remove "$version" || echo "kernel-install not exits zero!"
fi
}
......@@ -38,4 +48,12 @@ post_remove() {
version=${version/_/-}-seblu
echo "==> Cleaning remaining kernel $version modules"
[[ -n $version ]] && rm -rvf /usr/lib/modules/"$version"
# advertise if you remove the current running kernel
if [[ "$version" == "$(uname -r)" ]]; then
echo '********************************************************************************'
echo '********************************************************************************'
echo '****** YOU HAVE REMOVED THE CURRENTLY RUNNING KERNEL ** REBOOT IMMEDIATLY ******'
echo '********************************************************************************'
echo '********************************************************************************'
fi
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment