[arch-commits] Commit in linux/trunk (80-linux.hook PKGBUILD linux.install)
Tobias Powalowski
tpowa at archlinux.org
Thu Nov 17 14:15:29 UTC 2016
Date: Thursday, November 17, 2016 @ 14:15:28
Author: tpowa
Revision: 280946
upgpkg: linux 4.8.8-2
fix #51818 lvm2 breakage, move to mkinitcpio running as pacman hook
Added:
linux/trunk/80-linux.hook
Modified:
linux/trunk/PKGBUILD
linux/trunk/linux.install
---------------+
80-linux.hook | 11 +++++++++++
PKGBUILD | 8 +++++++-
linux.install | 4 ----
3 files changed, 18 insertions(+), 5 deletions(-)
Added: 80-linux.hook
===================================================================
--- 80-linux.hook (rev 0)
+++ 80-linux.hook 2016-11-17 14:15:28 UTC (rev 280946)
@@ -0,0 +1,11 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Target = boot/vmlinuz-linux
+Target = usr/lib/initcpio/*
+
+[Action]
+Description = Updating Arch Linux initramfs image
+When = PostTransaction
+Exec = /usr/bin/mkinitcpio -p linux
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-11-17 13:19:39 UTC (rev 280945)
+++ PKGBUILD 2016-11-17 14:15:28 UTC (rev 280946)
@@ -6,7 +6,7 @@
#pkgbase=linux-custom # Build kernel with a different name
_srcname=linux-4.8
pkgver=4.8.8
-pkgrel=1
+pkgrel=2
arch=('i686' 'x86_64')
url="http://www.kernel.org/"
license=('GPL2')
@@ -18,6 +18,8 @@
"https://www.kernel.org/pub/linux/kernel/v4.x/patch-${pkgver}.sign"
# the main kernel config files
'config' 'config.x86_64'
+ # pacman hook for initramfs regeneration
+ '80-linux.hook'
# standard config files for mkinitcpio ramdisk
'linux.preset'
'change-default-console-loglevel.patch'
@@ -29,6 +31,7 @@
'SKIP'
'2ac8818414beb7dbacbd3ad450c516e6ada804827132a7132f63b8189e5f5151'
'93a4ad4f6c7bb9296fddec436ed7477a5a5c11cf4d6e68482fa6610442cbcb1f'
+ '2d4424928ae3c5f63ee618b4685580f4bd24faf1778553dbd961f85a88ea0910'
'f0d90e756f14533ee67afda280500511a62465b4f76adcc5effa95a40045179c'
'1256b241cd477b265a3c2d64bdc19ffe3c9bbcee82ea3994c590c2c76e767d99')
validpgpkeys=(
@@ -128,6 +131,9 @@
-e "s|fallback_image=.*|fallback_image=\"/boot/initramfs-${pkgbase}-fallback.img\"|" \
-i "${pkgdir}/etc/mkinitcpio.d/${pkgbase}.preset"
+ # install pacman hook for initramfs regeneration
+ install -D -m644 "${srcdir}/80-linux.hook" "${pkgdir}/usr/share/libalpm/hooks/80-linux.hook"
+
# remove build and source links
rm -f "${pkgdir}"/lib/modules/${_kernver}/{source,build}
# remove the firmware
Modified: linux.install
===================================================================
--- linux.install 2016-11-17 13:19:39 UTC (rev 280945)
+++ linux.install 2016-11-17 14:15:28 UTC (rev 280946)
@@ -8,8 +8,6 @@
# updating module dependencies
echo ">>> Updating module dependencies. Please wait ..."
depmod ${KERNEL_VERSION}
- echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
- mkinitcpio -p linux${KERNEL_NAME}
}
post_upgrade() {
@@ -20,8 +18,6 @@
# updating module dependencies
echo ">>> Updating module dependencies. Please wait ..."
depmod ${KERNEL_VERSION}
- echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
- mkinitcpio -p linux${KERNEL_NAME}
if [ $(vercmp $2 3.13) -lt 0 ]; then
echo ">>> WARNING: AT keyboard support is no longer built into the kernel."
More information about the arch-commits
mailing list