2019-07-24 23:10:59 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
_5_2_2_2_changes() {
|
|
|
|
echo ':: Kernel command line update: add page_alloc.shuffle=1'
|
|
|
|
}
|
|
|
|
|
2019-08-22 22:48:02 +02:00
|
|
|
_5_2_9_6_changes() {
|
|
|
|
echo ':: Microcode is no longer builtin. https://wiki.archlinux.org/index.php/Microcode'
|
|
|
|
}
|
|
|
|
|
2019-07-24 23:10:59 +02:00
|
|
|
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 "
|
|
|
|
}
|
|
|
|
|
2018-01-18 22:47:42 +01:00
|
|
|
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
|
2019-07-24 23:10:59 +02:00
|
|
|
|
|
|
|
local v upgrades=(
|
|
|
|
5.2.2-2
|
2019-08-22 22:48:02 +02:00
|
|
|
5.2.9-6
|
2019-07-24 23:10:59 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
for v in "${upgrades[@]}"; do
|
|
|
|
if [[ $(vercmp "$v" "$2") -eq 1 ]]; then
|
|
|
|
"_${v//[.-]/_}_changes"
|
|
|
|
fi
|
|
|
|
done
|
2018-01-18 22:47:42 +01:00
|
|
|
}
|
2019-10-12 00:08:07 +02:00
|
|
|
|
|
|
|
post_remove() {
|
|
|
|
rm -f boot/initramfs-%PKGBASE%.img
|
|
|
|
rm -f boot/initramfs-%PKGBASE%-fallback.img
|
|
|
|
}
|