diff options
| author | Yuval Adam <_@yuv.al> | 2023-04-23 20:56:00 +0300 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2023-04-23 20:56:00 +0300 |
| commit | ea07597b6a5765fe9b03b0ff5c124a41dc6f3b1f (patch) | |
| tree | 78901d096d4f1463e8c5f5147a255e9f9baba5fa | |
| parent | 512cd1cc67e2e42bfbfb8bb665790b34c7c24e73 (diff) | |
Add missing .install
| -rw-r--r-- | linux-mnt-pocket-reform/linux-mnt-pocket-reform.install | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/linux-mnt-pocket-reform/linux-mnt-pocket-reform.install b/linux-mnt-pocket-reform/linux-mnt-pocket-reform.install new file mode 100644 index 0000000..eb30289 --- /dev/null +++ b/linux-mnt-pocket-reform/linux-mnt-pocket-reform.install @@ -0,0 +1,10 @@ +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 +} + +post_remove() { + rm -f boot/initramfs-linux.img + rm -f boot/initramfs-linux-fallback.img +} |
