Remove also old initramfs

This commit is contained in:
Kolan Sh 2012-07-17 11:10:55 +04:00
parent 08df3a1ab7
commit 98fbeebc5e
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ cd /lib/modules && rm -rf `ls | grep -v "^$REVISION$"`
# rm old kernel revisions
mount -o remount,rw /boot
cd /boot && rm -f `ls System.map-* config-* vmlinuz-* 2>/dev/null | grep -v "$REVISION$"`
cd /boot && rm -f `ls System.map-* config-* vmlinuz-* initramfs-* 2>/dev/null | grep -vE "$REVISION$|$REVISION.img$"`
mount -o remount,ro /boot
# rm old sources