diff options
author | Simão Gomes Viana | 2021-09-10 18:30:34 +0200 |
---|---|---|
committer | Simão Gomes Viana | 2021-09-10 18:33:38 +0200 |
commit | a0762eb4cae49117b079d2b1d09c949389d6b858 (patch) | |
tree | ea036749a29bc499a1c217dc93562126a09cf4be /linux-nitrous.install | |
parent | 9e786dd49e393b94cfd512b6bbae6706b09b4943 (diff) | |
download | aur-a0762eb4cae49117b079d2b1d09c949389d6b858.tar.gz |
use initramfs generators instead of doing it explicitly
Thanks @tam1m for the patch
Diffstat (limited to 'linux-nitrous.install')
-rw-r--r-- | linux-nitrous.install | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/linux-nitrous.install b/linux-nitrous.install index 0ca7cbd7aa1b..983bdd69fb4f 100644 --- a/linux-nitrous.install +++ b/linux-nitrous.install @@ -5,17 +5,11 @@ KERNEL_NAME= KERNEL_VERSION= post_install () { - echo ">>> Generating kernel initramfs..." - mkinitcpio -p ${KERNEL_NAME} + echo ">>> Don't forget to generate kernel initramfs, if this is not done automatically by your initramfs generator!" } 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 - - echo ">>> Generating kernel initramfs..." - mkinitcpio -p ${KERNEL_NAME} + echo ">>> Don't forget to generate kernel initramfs, if this is not done automatically by your initramfs generator!" if [ $(vercmp $2 3.13) -lt 0 ]; then echo ">>> WARNING: AT keyboard support is no longer built into the kernel." @@ -24,8 +18,4 @@ post_upgrade() { fi } -post_remove() { - # also remove the compat symlinks - rm -f boot/initramfs-linux${KERNEL_NAME}.img - rm -f boot/initramfs-linux${KERNEL_NAME}-fallback.img -} + |