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
Thanks
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
Thanks