mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-11-28 14:56:35 +00:00
Merge #411 Update a couple of commands for custom kernel cleanup
This commit is contained in:
commit
7f025a0706
1 changed files with 8 additions and 11 deletions
|
@ -330,19 +330,16 @@ below (just replace 'dave' with whatever tag you chose):
|
||||||
|
|
||||||
[source,bash]
|
[source,bash]
|
||||||
----
|
----
|
||||||
rm -f /boot/config-2.6.*dave* /boot/initrd-2.6.*dave* /boot/vmlinuz-*dave* /boot/System.map-*dave*
|
rm -f /boot/config-*dave* /boot/initramfs-*dave* /boot/vmlinuz-*dave* /boot/System.map-*dave*
|
||||||
rm -rf /lib/modules/2.6*dave*
|
rm -rf /lib/modules/*dave*
|
||||||
----
|
----
|
||||||
|
|
||||||
Finally, you will need to remove the kernel as an option to your bootloader.
|
Finally, you will need to remove the kernel as an option in your bootloader.
|
||||||
This will change from architecture to architecture. For x86, (as root), edit
|
Assuming your system is running grub2, this can be done by removing the
|
||||||
`/boot/grub2/grub.cfg` or `/boot/efi/EFI/fedora/grub.cfg` if you have EFI enabled
|
bootloader specification entries and rebuilding the grub config:
|
||||||
and delete the four lines relating to your kernel (They should be easy to spot,
|
|
||||||
they'll be the ones with your tag). They'll look something like:
|
|
||||||
|
|
||||||
|
[source,bash]
|
||||||
----
|
----
|
||||||
title Fedora Core (2.6.22-rc3-dave)
|
rm -f /boot/loader/entries/*dave*
|
||||||
root (hd0,0)
|
grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||||
kernel /vmlinuz-2.6.22-rc3-dave ro root=/dev/md0
|
|
||||||
initrd /initrd-2.6.22-rc3-dave.img
|
|
||||||
----
|
----
|
||||||
|
|
Loading…
Reference in a new issue