Article 5S9RA How to change kernel path using "grubby"

How to change kernel path using "grubby"

by
ddenial
from LinuxQuestions.org on (#5S9RA)
Hi

I want to change the path of the kernel using grubby (or any other way). Following is the kernel info:

Code:# grubby --info=DEFAULT
index=0
kernel="/dirA/dirB/vmlinuz-5.18.10-300.fc35.x86_64"
args="rhgb quiet"
root="UUID=12345678-1234-1234-1234-ba51981d9469"
initrd="/dirA/dirB/initramfs-5.18.10-300.fc35.x86_64.img"
title="Fedora Linux (5.14.18-300.fc35.x86_64) 35"
id="1234567890123456789086340b158a03-5.14.18-300.fc35.x86_64"I removed the arguments "rhgb" like this:

Code:# grubby --update-kernel=DEFAULT --remove-args="rhgb "Code:# grubby --info=DEFAULT
index=0
kernel="/dirA/dirB/vmlinuz-5.18.10-300.fc35.x86_64"
args="quiet"
root="UUID=12345678-1234-1234-1234-ba51981d9469"
initrd="/dirA/dirB/initramfs-5.18.10-300.fc35.x86_64.img"
title="Fedora Linux (5.14.18-300.fc35.x86_64) 35"
id="1234567890123456789086340b158a03-5.14.18-300.fc35.x86_64"But, how do I change the path of the kernel?

I want the kernel path to be "/dirA/vmlinuz-5.18.10-300.fc35.x86_64" instead of "/dirA/dirB/vmlinuz-5.18.10-300.fc35.x86_64"

Appreciate any help

Thankslatest?d=yIl2AUoC8zA latest?i=82gW5_IED38:bXdsgHaFHrY:F7zBnMy latest?i=82gW5_IED38:bXdsgHaFHrY:V_sGLiP latest?d=qj6IDK7rITs latest?i=82gW5_IED38:bXdsgHaFHrY:gIN9vFw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments