diff options
Diffstat (limited to 'linux.install')
-rw-r--r-- | linux.install | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/linux.install b/linux.install index bb2f675cbb05..6d815467c1ca 100644 --- a/linux.install +++ b/linux.install @@ -1,5 +1,30 @@ +#!/bin/bash + +_5_2_2_2_changes() { + echo ':: Kernel command line update: add page_alloc.shuffle=1' +} + +_5_2_9_6_changes() { + echo ':: Microcode is no longer builtin. https://wiki.archlinux.org/index.php/Microcode' +} + +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 rcupdate.rcu_expedited=1" + echo " rootfstype=ext4,btrfs,xfs,f2fs 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 + 5.2.9-6 + ) + + for v in "${upgrades[@]}"; do + if [[ $(vercmp "$v" "$2") -eq 1 ]]; then + "_${v//[.-]/_}_changes" + fi + done } |