Problem to update Fedora kinoite grub2

It is

1 Like

it didn’t work.

After creating the file with data and reboot it has shutdown my computer after grub choice

Any choice? Or just when you choose the new menu entry?

Either way, undoing the change is just a matter of removing the file. You might even be able to do that from the Grub command line.

I wonder if you pointed it at the wrong grub.cfg file and created a loop?

In that other thread, I recommended testing the commands manually before creating the file. I still recommend doing it that way.

No choice only fedora ostree0 and ostree1 and when booting on ostree0 shutdown

Either way, undoing the change is just a matter of removing the file. You might even be able to do that from the Grub command line.

I could boot on ostree1 and it started on it, so i removd the file created and it works again

I wonder if you pointed it at the wrong grub.cfg file and created a loop?

I wrote this in my custom.cfg:

menuentry “Cachy OS” {
insmod btrfs
search --no-floppy --fs-uuid --set=root xxxxxxxxx:subvol=@”
set prefix=($root)/boot/grub
configfile ($root)/boot/grub/grub.cfg
}

xxxxxxx= UUID of my nvme gave by os-prober

In that other thread, I recommended testing the commands manually before creating the file. I still recommend doing it that way.

I will look

IIRC, Grub has a cat command. You might be able to use that to dump the grub.cfg file to your screen before running the final configfile ... command. That would be a good way to confirm that you are getting the right grub.cfg file.

on Fedora kinoite?

Here a result for ls $root:

kensama@fedora:/var/home/kensama$ ls $root//var/mnt/@/boot/grub/
fonts grub-btrfs.cfg grub.cfg grubenv locale themes x86_64-efi

You have to do it from the Grub command line to know for sure what $root will end up pointing at (what the search command ends up setting it to, if it works). It will be different when the full OS is running.

will see that tomorrow it’s 9:00 pm here and i must wake up 4:00 am to go to work.

i must do it from boot menu of fedora or Cachy OS?

1 Like

You must do it from the one that you intend to add the custom menu entry that will automate running the same commands. (I think you said that was the Fedora Grub earlier.)

yep it’s fedora
And i type only ls $root command ?

No. Ideally would would enter all the commands and the end result would be that your other system boots. You might use echo $root to see what the variable is set to, or ls ($root)/ to see what files are listed.