commit a74901ceedc61d670f7dd720f31c8420d03c2810
parent 97a9ce3a481e8e4433532849c8be018ab6226f9b
Author: awy <awy@awy.one>
Date: Sun, 13 Apr 2025 19:08:56 +0300
cleanup
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/install.sh b/install.sh
@@ -165,6 +165,12 @@ export cryptpass
cp post_chroot.sh /mnt
artix-chroot /mnt ./post_chroot.sh
+# cleaning up
+if [ "$kerneltype" != 3 ]; then
+ rm /mnt/boot/*.img
+ rm /mnt/boot/vmlinuz-linux
+fi
+
umount -R /mnt
echo "Linux is successfully installed!"