From e263d311c84316be6733cc200de894a1e20bbcaa Mon Sep 17 00:00:00 2001 From: Josip Ponjavic Date: Wed, 24 Jul 2019 23:10:59 +0200 Subject: [PATCH] 5.2.2-2 (clr 5.2.2-807) --- .SRCINFO | 4 ++-- PKGBUILD | 4 ++-- linux.install | 24 ++++++++++++++++++++++++ 3 files changed, 28 insertions(+), 4 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 724d425..b1c997c 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = linux-clear pkgver = 5.2.2 - pkgrel = 1 + pkgrel = 2 url = https://github.com/clearlinux-pkgs/linux arch = x86_64 license = GPL2 @@ -15,7 +15,7 @@ pkgbase = linux-clear source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.2.tar.xz source = https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.2.tar.sign source = https://cdn.kernel.org/pub/linux/kernel/v5.x/patch-5.2.2.xz - source = clearlinux::git+https://github.com/clearlinux-pkgs/linux.git#tag=5.2.2-802 + source = clearlinux::git+https://github.com/clearlinux-pkgs/linux.git#tag=5.2.2-807 source = intel-ucode-20190618.tar.gz::https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/microcode-20190618.tar.gz source = enable_additional_cpu_optimizations-20190714.tar.gz::https://github.com/graysky2/kernel_gcc_patch/archive/20190714.tar.gz source = add-acs-overrides.patch::https://aur.archlinux.org/cgit/aur.git/plain/add-acs-overrides.patch?h=linux-vfio diff --git a/PKGBUILD b/PKGBUILD index ad64357..f8a3867 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -65,10 +65,10 @@ _enable_acs_override="y" _major=5.2 _minor=2 _srcname=linux-${_major} -_clr=${_major}.2-802 +_clr=${_major}.2-807 pkgbase=linux-clear pkgver=${_major}.${_minor} -pkgrel=1 +pkgrel=2 arch=('x86_64') url="https://github.com/clearlinux-pkgs/linux" license=('GPL2') diff --git a/linux.install b/linux.install index bb2f675..f15febe 100644 --- a/linux.install +++ b/linux.install @@ -1,5 +1,29 @@ +#!/bin/bash + +_5_2_2_2_changes() { + echo ':: Kernel command line update: add page_alloc.shuffle=1' +} + +post_install() { + echo ":: Adjust kernel command line in your bootloader to Clear Linux kernel default:" + echo " quiet console=tty0 console=ttyS0,115200n8 cryptomgr.notests initcall_debug" + echo " intel_iommu=igfx_off kvm-intel.nested=1 no_timer_check noreplace-smp" + echo " page_alloc.shuffle=1 rcu_nocbs=0-64 rcupdate.rcu_expedited=1" + echo " rootfstype=ext4,btrfs,xfs tsc=reliable rw " +} + post_upgrade() { if findmnt --fstab -uno SOURCE /boot &>/dev/null && ! mountpoint -q /boot; then echo "WARNING: /boot appears to be a separate partition but is not mounted." fi + + local v upgrades=( + 5.2.2-2 + ) + + for v in "${upgrades[@]}"; do + if [[ $(vercmp "$v" "$2") -eq 1 ]]; then + "_${v//[.-]/_}_changes" + fi + done }