mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 01:44:38 +08:00
21 lines
774 B
Plaintext
21 lines
774 B
Plaintext
## arg 1: the new package version
|
|
## arg 2: the old package version
|
|
post_upgrade() {
|
|
echo "Intel CPU ucode upgrades are no longer performed by the firmware loader."
|
|
echo "If you want to update the Intel CPU ucode on boot, add the file"
|
|
echo "Make sure you enable the 'microcode' hook in /etc/mkinitcpio.conf"
|
|
echo "And regenerate kernel image with mkinitcpio"
|
|
|
|
if which mkinitcpio >/dev/null 2>&1; then
|
|
echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
|
|
echo ">>> If you are using non-default kernel, you should update kernel"
|
|
echo ">>> manually"
|
|
if [ -f etc/mkinitcpio.d/linux.preset ]; then
|
|
mkinitcpio -p linux
|
|
fi
|
|
if [ -f etc/mkinitcpio.d/linux-lts.preset ]; then
|
|
mkinitcpio -p linux-lts
|
|
fi
|
|
fi
|
|
}
|