I tried completely to disable all options in linux-libre-4.17.3-gnu kernel
and compile it. I installed kernel and modules and then booted to iniramfs,
so my system works not proper way on it.
I need safely delete new broken kernels. How to do this?
# dpkg -l | grep linux-image | awk '{print$2}'
linux-image-4.4.0-119-generic
linux-image-extra-4.4.0-119-generic
linux-image-generic
# ls /boot
abi-4.4.0-119-generic retpoline-4.4.0-119-generic
config-4.17.3-gnu System.map-4.17.3-gnu
config-4.17.3-gnu.old System.map-4.17.3-gnu.old
config-4.4.0-119-generic System.map-4.4.0-119-generic
config-4.4.15-gnu System.map-4.4.15-gnu
grub vmlinuz-4.17.3-gnu
initrd.img-4.17.3-gnu vmlinuz-4.17.3-gnu.old
initrd.img-4.4.0-119-generic vmlinuz-4.4.0-119-generic
initrd.img-4.4.15-gnu vmlinuz-4.4.15-gnu
# ls /lib/modules/
4.17.3-gnu 4.4.0-119-generic 4.4.15-gnu
--
Please, how delete 4.17.3-gnu, vmlinuz-4.17.3-gnu.old ?? will my pc boot
correctly after
# rm -rf vmlinuz-4.17* System.map-4.17* config-4.17* initrd.img-4.17.3-gnu
/lib/modules/4.17.3-gnu
# update-grub
# reboot
--
Or it needs something else?