Remove also old initramfs
This commit is contained in:
parent
08df3a1ab7
commit
98fbeebc5e
|
@ -11,7 +11,7 @@ cd /lib/modules && rm -rf `ls | grep -v "^$REVISION$"`
|
||||||
|
|
||||||
# rm old kernel revisions
|
# rm old kernel revisions
|
||||||
mount -o remount,rw /boot
|
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
|
mount -o remount,ro /boot
|
||||||
|
|
||||||
# rm old sources
|
# rm old sources
|
||||||
|
|
Loading…
Reference in New Issue