Kernel packaging: do not remove initrd images on upgrade

This commit is contained in:
zador-blood-stained 2016-06-25 19:27:30 +03:00
parent 40d1cab1dc
commit 4bccb76674
22 changed files with 22 additions and 22 deletions

View file

@ -186,7 +186,7 @@ index 152d4d2..9b30ad2 100644
+
+bootfstype=\$(blkid -s TYPE -o value \$boot_partition)
+if [ "\$bootfstype" = "vfat" ]; then
+rm -f /boot/System.map* /boot/config* /boot/vmlinuz* /boot/zImage /boot/uImage /boot/*nitrd*
+rm -f /boot/System.map* /boot/config* /boot/vmlinuz* /boot/zImage /boot/uImage
+fi
+}
+mountpoint -q /boot && check_and_unmount