mirror of
https://github.com/archlinux-jerry/pkgbuilds
synced 2024-11-22 22:10:40 +08:00
16 lines
594 B
Text
16 lines
594 B
Text
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
|
|
if (( $(vercmp $2 5.5.8-3) < 0 )); then
|
|
echo '==> Fallback initramfs is not used, so it is being deleted now.'
|
|
echo -n '==> Please DO merge your mkinitcpio preset'
|
|
echo ' if you have it changed before,'
|
|
echo '==> otherwise your device will not boot again.'
|
|
rm -f boot/initramfs-linux-phicomm-n1-fallback.img
|
|
fi
|
|
}
|
|
|
|
post_remove() {
|
|
rm -f boot/initramfs-linux-phicomm-n1.img
|
|
}
|