Hello!
I have been using Leap 15.1 with KDE for a while now and still have one issue I would like to fix. I dual boot with Windows, but I have found (twice, unfortunately) that I have to set GRUB to select Windows by default or else when Windows reboots for updates automatically if it goes into Leap then Windows is quite unhappy (sometimes dead).
I want to use the GRUB last saved option(GRUB_DEFAULT=saved and GRUB_SAVEDEFAULT=true), but it doesn’t work since my root filesystem is BTRFS (see the note here and the explanation here). So, it seems like I should separate my /boot into a separate partition.
So first, are there any drawbacks to this?
- Will this break any of the OpenSUSE-managed Grub parts (like configuring in YAST), or will it work fine so long as I mount it as /boot in fstab?
- Over time could this method accidentally fail after running a system/kernel/GRUB update?
- Is this not a recommended workaround due to some reason I do not know?
So then if it is the right way, how do I go about doing it? Here is my drive in Partitioner, GParted, and fstab:
https://i.imgur.com/9pAjJok.png
https://i.imgur.com/8mCOTV3.png
/dev/system/swap swap swap defaults 0 0
/dev/system/root / btrfs defaults 0 0
/dev/system/root /.snapshots btrfs subvol=/@/.snapshots 0 0
/dev/system/root /var btrfs subvol=/@/var 0 0
/dev/system/root /var/cache btrfs subvol=/@/var/cache 0 0
/dev/system/root /usr/local btrfs subvol=/@/usr/local 0 0
/dev/system/root /tmp btrfs subvol=/@/tmp 0 0
/dev/system/root /srv btrfs subvol=/@/srv 0 0
/dev/system/root /root btrfs subvol=/@/root 0 0
/dev/system/root /opt btrfs subvol=/@/opt 0 0
/dev/system/home /home xfs defaults 0 0
/dev/system/root /boot/grub2/x86_64-efi btrfs subvol=/@/boot/grub2/x86_64-efi 0 0
/dev/system/root /boot/grub2/i386-pc btrfs subvol=/@/boot/grub2/i386-pc 0 0
UUID=<REDACTED> /boot/efi vfat defaults 0 0
UUID=<REDACTED> /mnt/windows ntfs defaults 0 0
Should I:
- Create the new partition in my LVM group or outside of it? I suspect it can go inside of it since that is where /boot is currently.
- I think it should be ext2?
- If it is outside, should it have the boot flag? Does it need any other flags?
- Should it be 500 MB, or larger?
- Speed-wise it shouldn’t matter where it is on the disk since this is an SSD, but does placement matter for any other reason? I boot with EFI, so I figure it doesn’t matter if this is the first partition on the disk.
- Should I copy everything in /boot to the new partition and then add it to fstab?
- Do I need to give it any special flags in fstab?
- How do I let GRUB or the EFI bootloader know of this change? Or does it happen automatically if I run grub2-mkconfig or run the YAST configurator?
Sorry for the massive amount of questions! I think I have wrapped my head around this, but I want to make sure I do it right (and not end up with a failed system lol).
Thanks!