summarylogtreecommitdiffstats
path: root/linux.install
diff options
context:
space:
mode:
authorJosip Ponjavic2019-07-24 23:10:59 +0200
committerJosip Ponjavic2019-07-24 23:10:59 +0200
commite263d311c84316be6733cc200de894a1e20bbcaa (patch)
tree7b69e58dfbb22cba717d5ff68efda8c57b220e42 /linux.install
parente91224699b8b591712a83b4f7436fd906e0c629c (diff)
downloadaur-e263d311c84316be6733cc200de894a1e20bbcaa.tar.gz
5.2.2-2 (clr 5.2.2-807)
Diffstat (limited to 'linux.install')
-rw-r--r--linux.install24
1 files changed, 24 insertions, 0 deletions
diff --git a/linux.install b/linux.install
index bb2f675cbb05..f15febe2ff38 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
}