And now we allow @arcDaniel to look this over and see if he or someone else can find anything wrong in there.
with btrfs the only thing that you can’t do with grub is the “remember last choice” option.
What does that mean “remember last choice”?
Lets say you first(0) grub entry is Linux-default, second(1) fallback and than the third(2) is Linux-LTS
-Default you boot in Linux-Default and for Linux-LTS you need to make the choice youself.
on the next boot, the default selection will still be Linux-default(0)
-With GRUB_SAVEDEFAULT=true // GRUB_DEFAULT=saved the last selected entry is saved to be the default for the next boot
example:
first boot: Linux-default(0) is selected but you select Linux-LTS(2)
next boot: Linux-LTS(2) is now select, so when the time runs out, Linux-LTS will boot automatically
And that the will not work with btrfs, because grub can’t save the “new” entry for the next boot.
Is that a problem, when you want to use the default-kernel but keep the lts-kernel as fallback?
Not really:
it is rarely the a kernel will not boot, at least not boot to a place where you can’t use the console and you can always change the GRUB_DEFAULT=“number of the entry” in the file /etc/default/grub
and update grub with:
sudo grub-mkconfig -o /boot/grub/grub.cfg
On the other side, with btrfs you can use snapshot and easily go back to a running System when a kernel update goes wrong.
@anon50380917
please open the config from the terminal with (sorry in my previews post I had written the wrong file)
sudo nano sudo nano /etc/default/grub
Here is mine:
I don’t understand where you guys are going with this. There is no purpose in @anon50380917 making changes to his current grub configs. He is using ext4 right now.
Even if he made the changes, the test would be meaningless.
That’s what I’ve been trying to say all along: I’m using ext4 now, at the moment it’s not doing me any good. But thanks for the help anyway. I appreciate it.
@dalto
I would only clarify how grub works, that @Balder become a better understanding how grub works, for future changes. Not that he need to change something now.
A bit late to the conversation - but on my systems I simplify things (when necessary because of different filesystems) by having a separate /boot partition done with ext4. this allows such things as grub writes, and still allows f2fs or zfs or btrfs to have control of the rest of the system.
I use rEFInd to startup the system, but it can call grub setups as easily as any others from there, allowing ‘live’ snapshot access as well…
I have now last night a new attempt with BTRFS ventured and reinstalled. This time setting GRUB_DEFAULT=2 worked without problems. I have also installed snap-pac-grub
, snapper
, grub-btrfs
and btrfs-assistant
to be able to manage the snapshots well and will now look deeper into the btrfs-assistant from dalto. Thanks to @dalto, @arcDaniel, @Zircon34, @pebcak and @olividir for the help!
To @olividir: sorry, that i made myself so wide in your thread, that was not wanted.
No worries, glad to help
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.