mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-24 01:16:05 +01:00
28 lines
587 B
Plaintext
28 lines
587 B
Plaintext
## arg 1: the new package version
|
|
post_install() {
|
|
holo apply
|
|
if ! mkinitcpio -P; then
|
|
echo "Failed to generate initramfs. Please run 'mkinitcpio -P' manually. (This is normal during initial system installation).";
|
|
return 1;
|
|
fi
|
|
}
|
|
|
|
## arg 1: the new package version
|
|
## arg 2: the old package version
|
|
post_upgrade() {
|
|
holo apply
|
|
if ! mkinitcpio -P; then
|
|
echo "Failed to generate initramfs."
|
|
return 1
|
|
fi
|
|
}
|
|
|
|
## arg 1: the old package version
|
|
post_remove() {
|
|
holo apply
|
|
if ! mkinitcpio -P; then
|
|
echo "Failed to generate initramfs."
|
|
return 1
|
|
fi
|
|
}
|