mirror of
https://github.com/Fishwaldo/build.git
synced 2025-07-24 05:48:41 +00:00
Kernel packaging: do not remove initrd images on upgrade
This commit is contained in:
parent
40d1cab1dc
commit
4bccb76674
22 changed files with 22 additions and 22 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue