2019-07-24 23:10:59 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
_5_2_2_2_changes() {
|
2024-08-06 21:07:57 +02:00
|
|
|
echo ":: A new command line option was added: add page_alloc.shuffle=1"
|
2019-07-24 23:10:59 +02:00
|
|
|
}
|
|
|
|
|
2019-08-22 22:48:02 +02:00
|
|
|
_5_2_9_6_changes() {
|
2024-08-06 21:07:57 +02:00
|
|
|
echo ":: Microcode is no longer builtin. See https://wiki.archlinux.org/index.php/Microcode"
|
2019-08-22 22:48:02 +02:00
|
|
|
}
|
|
|
|
|
2019-07-24 23:10:59 +02:00
|
|
|
post_install() {
|
2024-08-06 21:07:57 +02:00
|
|
|
echo ":: Clear Linux bundles a custom command line which must be applied manually on other distributions."
|
|
|
|
echo " This is their default command line:"
|
2019-07-24 23:10:59 +02:00
|
|
|
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"
|
2020-06-10 21:17:31 +02:00
|
|
|
echo " page_alloc.shuffle=1 rcupdate.rcu_expedited=1"
|
2024-08-06 21:07:57 +02:00
|
|
|
echo " rootfstype=ext4,btrfs,xfs,f2fs tsc=reliable rw"
|
2019-07-24 23:10:59 +02:00
|
|
|
}
|
|
|
|
|
2018-01-18 22:47:42 +01:00
|
|
|
post_upgrade() {
|
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
|
2024-08-06 21:07:57 +02:00
|
|
|
if [[ $(vercmp "${v}" "$2") -eq 1 ]]; then
|
2019-07-24 23:10:59 +02:00
|
|
|
"_${v//[.-]/_}_changes"
|
|
|
|
fi
|
|
|
|
done
|
2018-01-18 22:47:42 +01:00
|
|
|
}
|