How to change the default kernel in GRUB for RHEL and CentOS


How to change the default kernel in  GRUB for CentOS 7 and  RHEL 7 servers?

 

OS Version: RHEL and  CentOS 7

Step 1: Get installed  kernel versions

# awk -F\' /^menuentry/{print\$2} /etc/grub2.cfg
0- Red Hat Enterprise Linux Server (3.10.0-1062.7.1.el7.x86_64) 7.7 (Maipo)
1- Red Hat Enterprise Linux Server (3.10.0-1062.1.2.el7.x86_64) 7.7 (Maipo)
2- Red Hat Enterprise Linux Server (3.10.0-693.el7.x86_64) 7.4 (Maipo)
3- Red Hat Enterprise Linux Server (0-rescue-39228403a82a4e29afb7e5ca1a869adb) 7.4 (Maipo)

Step 2: Use grub2-set-default command

#grub2-set-default 1

Step 3: Check grubenv  file

# cat /boot/grub2/grubenv |grep saved
saved_entry=1

Step 4: Rebuild Grub.cfg file

BIOS-Based:
#ls  -ld  /boot/grub2/grub.cfg
-rw-r--r--. 1 root root 6083 Dec  3 15:55 /boot/grub2/grub.cfg
#grub2-mkconfig -o /boot/grub2/grub.cfg

UEFI-BASED:
#ls  -ld  /boot/efi/EFI/redhat/grub.cfg
#grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg

Step 5: Restart Server

#shutdown  -r  now

 

I'm a IT Infrastructure and Operations Architect with extensive experience and administration skills and works for Turk Telekom. I provide hardware and software support for the IT Infrastructure and Operations tasks.

205 Total Posts
Follow Me

57 Comments

  1. It can lead to serious liver disease. how to get viagra to work (https://saleviabuy.com/) generic viagra india

  2. Khloe Kardashian reveals her VERY shapely derriere in skintight gym leggings... https://saleviabuy.com viagra walgreens

  3. Same goes for people bedding. http://genqpviag.com does viagra have a generic

  4. 16. Cauchon, Dennis. D.A.R.E. doesn't work: Studies find drug program not effective. USA Today, 10-11-93. https://genqpviag.com is buying generic viagra online safe

  5. There are more than 100 different types of cancer with a wide range of different signs and symptoms which can manifest in different ways. http://llviabest.com safest place to buy viagra online

  6. But the initial treatment of a first dislocation is typically the same: the patient will be sedated made sleepy and by manipulating the joint the ball usually can be put back into the socket. buy generic viagra online canada buying viagra online safely

  7. Mix the ingredients well so that they are completely dissolved in water. canadian online pharmacy viagra viagra online store

  8. Chemotherapy Drugs for Ovarian Cancer There are several chemotherapy drugs used to treat ovarian cancer. viagra without prescription online viagra online no prior prescription

  9. Who can prescribe mifepristone and misoprostol? http://llviabest.com best viagra online reviews

  10. The hair you can see is actually a string of dead keratin cells. buy generic viagra online fast shipping what is generic viagra

  11. Acute pulmonary haemorrhage in an infant during induction of general anaesthesia. https://genqpviag.com is generic viagra as good as real viagra

  12. Some risk factors include conditions that cause difficulty swallowing or problems with regurgitation such as laryngeal paralysis, megaesophagus, cleft palate, chronic vomiting, altered states of consciousness, and tumors of the respiratory system. https://llviabest.com buy viagra and cialis online

  13. So the blood has the most crucial amount of magnesium because when it drops you will suffer heart attack and die. https://siviagmen.com marley generic viagra

  14. buying viagra online reddit http://fmedrx.com/ safe generic viagra reddit viagra online

  15. how to buy viagra online http://usggrxmed.com/ viagra online bestellen buy generic viagra online with mastercard

  16. compra viagra peru https://purevigra.com ou acheter du viagra a montreal

  17. is it safe to take viagra after heart attack i'm young and need viagra can 12 year olds take viagra

  18. ganaric viagra buyu viagra online buy viagra online without prescription

  19. prazosin and viagra viagra ne zaman etki eder quanto tempo efeito viagra

  20. viagra patent ends https://paradiseviagira.com viagra covered on line by insurance

  21. Viagra online best price https://hopeviagrin.com/ sildenafil generic without prescription

  22. Buy viagra super active https://lightvigra.com legal to buy viagra online

  23. Viagra otc usa https://hopeviagrin.com/ buy viagra online free shipping

  24. potency of viagra https://buybuyviamen.com viagra gag

  25. Where can buy viagra https://mygoviagar.com viagra super active price

  26. Generic sildenafil sale online mygoviagar.com purchase viagra in uk

  27. Buy viagra pharmacy https://lightvigra.com buy cheap viagra online without prescription

  28. Viagra tablets online australia miraclevigra.com viagra online usa cheap

  29. Canadian pharmacies viagra https://mygoviagar.com/ generic viagra 50mg

  30. Viagra-50mg https://hopeviagrin.com cheap viagra prescription online

  31. Sildenafil prices 20 mg https://lightvigra.com/ price of viagra in us

  32. Viagra soft tabs 50 mg https://mygoviagar.com/ buy sildenafil 50mg uk

  33. Purchase cheap viagra mygoviagar.com order sildenafil canada

  34. Viagra online 150mg hopeviagrin.com viagra generic in united states

  35. Buy viagra online 100mg https://hopeviagrin.com/ cheapest brand viagra online

  36. Sildenafil prices 20 mg https://mygoviagar.com/ buy viagra generic canada

  37. Order viagra online pharmacy mygoviagar.com generic viagra from canada

  38. Best sildenafil brand generic https://miraclevigra.com/ viagra 50 mg tablet online

  39. Buy viagra new zealand miraclevigra.com real viagra canada

  40. Viagra online 150mg lightvigra.com order viagra from uk

  41. Generic drug for viagra https://mygoviagar.com viagra coupon online

  42. Online pharmacy viagra no prescription mygoviagar.com female viagra drug

  43. Generic female viagra https://hopeviagrin.com/ how to order generic viagra online

  44. 20 mg sildenafil daily https://hopeviagrin.com/ cost of viagra 100mg in australia

  45. Order viagra online singapore lightvigra.com generic viagra in india online

  46. Viagra 150 mg https://lightvigra.com cost of sildenafil in canada

  47. Viagra soft tabs online https://mygoviagar.com buy canadian generic viagra online

  48. Viagra price in south africa https://mygoviagar.com where to buy real generic viagra

  49. Buy cheap viagra online uk miraclevigra.com where to buy otc viagra

  50. Best viagra capsule https://miraclevigra.com/ purchase sildenafil

  51. Sildenafil online without prescription https://hopeviagrin.com viagra price without insurance

  52. How can i get viagra pills https://miraclevigra.com/ cheap prices for viagra

  53. Genuine viagra best price miraclevigra.com viagra tablets india

  54. viagra pills no prescription where can i get viagra online generic viagra without rx

  55. How much is viagra in canada https://mygoviagar.com viagra in canada cost

  56. order viagra online in usa how to buy generic viagra online indian viagra online

  57. online viagra paypal order viagra online uk generic viagra pills

Leave a Reply