aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-09-13 10:21:24 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-09-13 10:21:24 +0200
commit331bef7ccf2261cc6d1fe2d9b26ac56a48a1a9a0 (patch)
tree09bc6c1904aa3213c579ca439e89e419c5fcb48e
parent16322bbce2df77502e72a98a9ace0afe924d5b29 (diff)
downloaddotfiles-331bef7ccf2261cc6d1fe2d9b26ac56a48a1a9a0.tar.gz
dotfiles-331bef7ccf2261cc6d1fe2d9b26ac56a48a1a9a0.zip
kbuild: Remove the initrd image on uninstall.sh
The initrd image is created and installed dynamically via install.sh. Hence, this is not picked up by the files.txt list and so we need to remove it manually. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
-rwxr-xr-xbin/kbuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/kbuild b/bin/kbuild
index 486e9d2..39f1606 100755
--- a/bin/kbuild
+++ b/bin/kbuild
@@ -259,8 +259,9 @@ if [ ! -f files.txt ]; then
fi
xargs rm -f < files.txt
-rm -r /boot/dtbs/$name
rm -r /usr/lib/modules/$name
+rm -r /boot/dtbs/$name
+rm /boot/initrd.img-$name
if [ -z "\$EDITOR" ]; then
EDITOR=vi