[opensuse-support] Leap and Tumbleweed install GRUB2 in same ESP-directory
Both openSUSE Leap 15.0 and openSUSE Tumbleweed install GRUB2 bootloader files (on an UEFI system) in "\EFI\opensuse". Consulting the GRUB2 manual shows that "grub-install --target=x86_64-efi --bootloader-id="name_of_directory" would allow for different names (like "opensuse" and "tumbleweed"). How can i change this behavior and make each OS installing its bootloader files in its own directory? Thank you for any hint. Regards Hagen PS I'm aware that i could use separat ESPs or handle GRUB2 manually. But that is not what i want. -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
17.02.2019 18:30, Hagen Buliwyf пишет:
Both openSUSE Leap 15.0 and openSUSE Tumbleweed install GRUB2 bootloader files (on an UEFI system) in "\EFI\opensuse".
Consulting the GRUB2 manual shows that "grub-install --target=x86_64-efi --bootloader-id="name_of_directory" would allow for different names (like "opensuse" and "tumbleweed").
How can i change this behavior and make each OS installing its bootloader files in its own directory?
Change GRUB_DISTRIBUTOR in /etc/default/grub on one system. Default is the first word of distribution name. Unfortunately IIRC it is no more possible to change via YaST bootloader module (i.e. during installation). -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
17.02.19 16:42 - Andrei Borzenkov:
17.02.2019 18:30, Hagen Buliwyf пишет:
Both openSUSE Leap 15.0 and openSUSE Tumbleweed install GRUB2 bootloader files (on an UEFI system) in "\EFI\opensuse".
Consulting the GRUB2 manual shows that "grub-install --target=x86_64-efi --bootloader-id="name_of_directory" would allow for different names (like "opensuse" and "tumbleweed").
How can i change this behavior and make each OS installing its bootloader files in its own directory?
Change GRUB_DISTRIBUTOR in /etc/default/grub on one system. Default is the first word of distribution name. Unfortunately IIRC it is no more possible to change via YaST bootloader module (i.e. during installation).
Thank you very much for your quick response. That was my first thought as well but it did not work: I renamed \EFI\opensuse to \EFI\oS. Then i set (in Leap) GRUB_DISTRIBUTOR=oSL15 and (in Tumbleweed) GRUB_DISTRIBUTOR=oSTW and ran grub2-mkconfig -o /boot/grub2/grub.cfg on both systems. Finally i did grub2-install on Tumbleweed and got \EFI\opensuse. In /etc/default/grub it says: "Uncomment to set your own custom distributor. If you leave it unset or empty, the default policy is to determine the value from /etc/os-release" so if that would work then shouldn't there have been two different directories from the very beginning? Regards Hagen -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
17.02.19 17:06 - Hagen Buliwyf:
17.02.19 16:42 - Andrei Borzenkov:
17.02.2019 18:30, Hagen Buliwyf пишет:
Both openSUSE Leap 15.0 and openSUSE Tumbleweed install GRUB2 bootloader files (on an UEFI system) in "\EFI\opensuse".
Consulting the GRUB2 manual shows that "grub-install --target=x86_64-efi --bootloader-id="name_of_directory" would allow for different names (like "opensuse" and "tumbleweed").
How can i change this behavior and make each OS installing its bootloader files in its own directory?
Change GRUB_DISTRIBUTOR in /etc/default/grub on one system. Default is the first word of distribution name. Unfortunately IIRC it is no more possible to change via YaST bootloader module (i.e. during installation).
Thank you very much for your quick response. That was my first thought as well but it did not work:
I renamed \EFI\opensuse to \EFI\oS.
Then i set (in Leap) GRUB_DISTRIBUTOR=oSL15 and (in Tumbleweed) GRUB_DISTRIBUTOR=oSTW and ran grub2-mkconfig -o /boot/grub2/grub.cfg on both systems.
Finally i did grub2-install on Tumbleweed and got \EFI\opensuse.
In /etc/default/grub it says: "Uncomment to set your own custom distributor. If you leave it unset or empty, the default policy is to determine the value from /etc/os-release" so if that would work then shouldn't there have been two different directories from the very beginning?
Regards
Hagen
Well that was only half the truth: I just did a grub2-install under openSUSE Leap 15 and that did indeed produce a directory \EFI\osl15 (as expected). openSUSE Leap 15.0 => grub2 2.02-lp150.13.16.1 openSUSE Tumbleweed => grub2 2.02-39.1 So is this a bug in Tumbleweed? Regards Hagen -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On 2019-02-17 11:03 AM, Hagen Buliwyf wrote:
I just did a grub2-install under openSUSE Leap 15 and that did indeed produce a directory \EFI\osl15 (as expected).
openSUSE Leap 15.0 => grub2 2.02-lp150.13.16.1 openSUSE Tumbleweed => grub2 2.02-39.1
Those are the most recent releases in their respective repositories (15.0 Update and Tumbleweed). -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
17.02.2019 20:03, Hagen Buliwyf пишет:
17.02.19 17:06 - Hagen Buliwyf:
17.02.19 16:42 - Andrei Borzenkov:
17.02.2019 18:30, Hagen Buliwyf пишет:
Both openSUSE Leap 15.0 and openSUSE Tumbleweed install GRUB2 bootloader files (on an UEFI system) in "\EFI\opensuse".
Consulting the GRUB2 manual shows that "grub-install --target=x86_64-efi --bootloader-id="name_of_directory" would allow for different names (like "opensuse" and "tumbleweed").
How can i change this behavior and make each OS installing its bootloader files in its own directory?
Change GRUB_DISTRIBUTOR in /etc/default/grub on one system. Default is the first word of distribution name. Unfortunately IIRC it is no more possible to change via YaST bootloader module (i.e. during installation).
Thank you very much for your quick response. That was my first thought as well but it did not work:
I renamed \EFI\opensuse to \EFI\oS.
Then i set (in Leap) GRUB_DISTRIBUTOR=oSL15 and (in Tumbleweed) GRUB_DISTRIBUTOR=oSTW and ran grub2-mkconfig -o /boot/grub2/grub.cfg on both systems.
Finally i did grub2-install on Tumbleweed and got \EFI\opensuse.
In /etc/default/grub it says: "Uncomment to set your own custom distributor. If you leave it unset or empty, the default policy is to determine the value from /etc/os-release" so if that would work then shouldn't there have been two different directories from the very beginning?
Regards
Hagen
Well that was only half the truth:
I just did a grub2-install under openSUSE Leap 15 and that did indeed produce a directory \EFI\osl15 (as expected).
openSUSE Leap 15.0 => grub2 2.02-lp150.13.16.1 openSUSE Tumbleweed => grub2 2.02-39.1
So is this a bug in Tumbleweed?
I just tested and it works correctly here with current TW (system was installed in the morning for some other purpose). -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
17.02.19 19:00 - Andrei Borzenkov:
17.02.2019 20:03, Hagen Buliwyf пишет:
17.02.19 17:06 - Hagen Buliwyf:
17.02.19 16:42 - Andrei Borzenkov:
17.02.2019 18:30, Hagen Buliwyf пишет:
Both openSUSE Leap 15.0 and openSUSE Tumbleweed install GRUB2 bootloader files (on an UEFI system) in "\EFI\opensuse".
Consulting the GRUB2 manual shows that "grub-install --target=x86_64-efi --bootloader-id="name_of_directory" would allow for different names (like "opensuse" and "tumbleweed").
How can i change this behavior and make each OS installing its bootloader files in its own directory?
Change GRUB_DISTRIBUTOR in /etc/default/grub on one system. Default is the first word of distribution name. Unfortunately IIRC it is no more possible to change via YaST bootloader module (i.e. during installation).
Thank you very much for your quick response. That was my first thought as well but it did not work:
I renamed \EFI\opensuse to \EFI\oS.
Then i set (in Leap) GRUB_DISTRIBUTOR=oSL15 and (in Tumbleweed) GRUB_DISTRIBUTOR=oSTW and ran grub2-mkconfig -o /boot/grub2/grub.cfg on both systems.
Finally i did grub2-install on Tumbleweed and got \EFI\opensuse.
In /etc/default/grub it says: "Uncomment to set your own custom distributor. If you leave it unset or empty, the default policy is to determine the value from /etc/os-release" so if that would work then shouldn't there have been two different directories from the very beginning?
Regards
Hagen
Well that was only half the truth:
I just did a grub2-install under openSUSE Leap 15 and that did indeed produce a directory \EFI\osl15 (as expected).
openSUSE Leap 15.0 => grub2 2.02-lp150.13.16.1 openSUSE Tumbleweed => grub2 2.02-39.1
So is this a bug in Tumbleweed?
I just tested and it works correctly here with current TW (system was installed in the morning for some other purpose).
Thank you for testing. Did you test on "bare metal" or in a VM? I'm running Tumbleweed on "bare metal". zypper dup reports no updates available. So my system should have "the same SW versions" as yours. Any ideas what i have done wrong and what else i could try? Regards Hagen -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On 17/02/2019 19.13, Hagen Buliwyf wrote:
17.02.19 19:00 - Andrei Borzenkov:
17.02.2019 20:03, Hagen Buliwyf пишет:
17.02.19 17:06 - Hagen Buliwyf:
17.02.19 16:42 - Andrei Borzenkov:
17.02.2019 18:30, Hagen Buliwyf пишет:
Both openSUSE Leap 15.0 and openSUSE Tumbleweed install GRUB2 bootloader files (on an UEFI system) in "\EFI\opensuse".
Consulting the GRUB2 manual shows that "grub-install --target=x86_64-efi --bootloader-id="name_of_directory" would allow for different names (like "opensuse" and "tumbleweed").
How can i change this behavior and make each OS installing its bootloader files in its own directory?
Change GRUB_DISTRIBUTOR in /etc/default/grub on one system. Default is the first word of distribution name. Unfortunately IIRC it is no more possible to change via YaST bootloader module (i.e. during installation).
Thank you very much for your quick response. That was my first thought as well but it did not work:
I renamed \EFI\opensuse to \EFI\oS.
Then i set (in Leap) GRUB_DISTRIBUTOR=oSL15 and (in Tumbleweed) GRUB_DISTRIBUTOR=oSTW and ran grub2-mkconfig -o /boot/grub2/grub.cfg on both systems.
Finally i did grub2-install on Tumbleweed and got \EFI\opensuse.
In /etc/default/grub it says: "Uncomment to set your own custom distributor. If you leave it unset or empty, the default policy is to determine the value from /etc/os-release" so if that would work then shouldn't there have been two different directories from the very beginning?
Regards
Hagen
Well that was only half the truth:
I just did a grub2-install under openSUSE Leap 15 and that did indeed produce a directory \EFI\osl15 (as expected).
openSUSE Leap 15.0 => grub2 2.02-lp150.13.16.1 openSUSE Tumbleweed => grub2 2.02-39.1
So is this a bug in Tumbleweed?
I just tested and it works correctly here with current TW (system was installed in the morning for some other purpose).
Thank you for testing.
Did you test on "bare metal" or in a VM?
I'm running Tumbleweed on "bare metal". zypper dup reports no updates available. So my system should have "the same SW versions" as yours.
Any ideas what i have done wrong and what else i could try?
Did you remember to run 'grub2-mkconfig -o /boot/grub2/grub.cfg' -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
17.02.19 19:42 - Carlos E. R.:
On 17/02/2019 19.13, Hagen Buliwyf wrote:
17.02.19 19:00 - Andrei Borzenkov:
17.02.2019 20:03, Hagen Buliwyf пишет:
17.02.19 17:06 - Hagen Buliwyf:
17.02.19 16:42 - Andrei Borzenkov:
17.02.2019 18:30, Hagen Buliwyf пишет: > Both openSUSE Leap 15.0 and openSUSE Tumbleweed install > GRUB2 bootloader files (on an UEFI system) in > "\EFI\opensuse". > > Consulting the GRUB2 manual shows that "grub-install > --target=x86_64-efi > --bootloader-id="name_of_directory" would allow for > different names (like "opensuse" and "tumbleweed"). > > How can i change this behavior and make each OS > installing its bootloader files in its own directory? >
Change GRUB_DISTRIBUTOR in /etc/default/grub on one system. Default is the first word of distribution name. Unfortunately IIRC it is no more possible to change via YaST bootloader module (i.e. during installation).
Thank you very much for your quick response. That was my first thought as well but it did not work:
I renamed \EFI\opensuse to \EFI\oS.
Then i set (in Leap) GRUB_DISTRIBUTOR=oSL15 and (in Tumbleweed) GRUB_DISTRIBUTOR=oSTW and ran grub2-mkconfig -o /boot/grub2/grub.cfg on both systems.
Finally i did grub2-install on Tumbleweed and got \EFI\opensuse.
In /etc/default/grub it says: "Uncomment to set your own custom distributor. If you leave it unset or empty, the default policy is to determine the value from /etc/os-release" so if that would work then shouldn't there have been two different directories from the very beginning?
Regards
Hagen
Well that was only half the truth:
I just did a grub2-install under openSUSE Leap 15 and that did indeed produce a directory \EFI\osl15 (as expected).
openSUSE Leap 15.0 => grub2 2.02-lp150.13.16.1 openSUSE Tumbleweed => grub2 2.02-39.1
So is this a bug in Tumbleweed?
I just tested and it works correctly here with current TW (system was installed in the morning for some other purpose).
Thank you for testing.
Did you test on "bare metal" or in a VM?
I'm running Tumbleweed on "bare metal". zypper dup reports no updates available. So my system should have "the same SW versions" as yours.
Any ideas what i have done wrong and what else i could try?
Did you remember to run 'grub2-mkconfig -o /boot/grub2/grub.cfg'
Yes, i did (under Leap AND Tumbleweed). Regards Hagen -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
17.02.2019 21:13, Hagen Buliwyf пишет:
Did you test on "bare metal" or in a VM?
VM. I do not see how it matters.
I'm running Tumbleweed on "bare metal". zypper dup reports no updates available. So my system should have "the same SW versions" as yours.
Any ideas what i have done wrong and what else i could try?
Not really. Attach your /etc/default/grub. -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
17.02.19 20:43 - Andrei Borzenkov:
17.02.2019 21:13, Hagen Buliwyf пишет:
Did you test on "bare metal" or in a VM?
VM. I do not see how it matters.
I'm running Tumbleweed on "bare metal". zypper dup reports no updates available. So my system should have "the same SW versions" as yours.
Any ideas what i have done wrong and what else i could try?
Not really. Attach your /etc/default/grub.
Here is what /etc/default/grub from my Tumbleweed installation looks like:
START >>>
# If you change this file, run 'grub2-mkconfig -o /boot/grub2/grub.cfg' afterwards # to update /boot/grub2/grub.cfg. # Uncomment to set your own custom distributor. If you leave it unset or empty, the default # policy is to determine the value from /etc/os-release GRUB_DISTRIBUTOR="oSTW" GRUB_DEFAULT=saved GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=8 GRUB_CMDLINE_LINUX_DEFAULT="resume=/dev/disk/by-label/SWAP" GRUB_CMDLINE_LINUX="" # Uncomment to automatically save last booted menu entry in GRUB2 environment # variable `saved_entry' # GRUB_SAVEDEFAULT="true" # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) # GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef" #Uncomment to disable graphical terminal (grub-pc only) GRUB_TERMINAL="gfxterm" # The resolution used on graphical terminal GRUB_GFXMODE="auto" # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo' # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux # GRUB_DISABLE_LINUX_UUID=true #Uncomment to disable generation of recovery mode menu entries # GRUB_DISABLE_RECOVERY="true" #Uncomment to get a beep at grub start # GRUB_INIT_TUNE="480 440 1" GRUB_BACKGROUND= GRUB_THEME=/boot/grub2/themes/openSUSE/theme.txt SUSE_BTRFS_SNAPSHOT_BOOTING="true" GRUB_USE_LINUXEFI="true" GRUB_DISABLE_OS_PROBER="false" GRUB_ENABLE_CRYPTODISK="n" GRUB_CMDLINE_XEN_DEFAULT="vga=gfx-1024x768x16" <<< END <<< Regards Hagen -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On 17/02/2019 20.57, Hagen Buliwyf wrote:
17.02.19 20:43 - Andrei Borzenkov:
Not really. Attach your /etc/default/grub.
Here is what /etc/default/grub from my Tumbleweed installation looks like:
START >>>
I think the idea was for you to use the File/attach menu of Thunderbird ;-) That way there is no line wrap. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
17.02.19 21:08 - Carlos E. R.:
On 17/02/2019 20.57, Hagen Buliwyf wrote:
17.02.19 20:43 - Andrei Borzenkov:
Not really. Attach your /etc/default/grub.
Here is what /etc/default/grub from my Tumbleweed installation looks like:
START >>>
I think the idea was for you to use the File/attach menu of Thunderbird ;-)
That way there is no line wrap.
Yes, but aren't attachments forbidden on this list? Regards Hagen -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On Sun, 17 Feb 2019 21:33:24 +0100 Hagen Buliwyf <hagen.buliwyf@t-online.de> wrote:
17.02.19 21:08 - Carlos E. R.:
On 17/02/2019 20.57, Hagen Buliwyf wrote:
17.02.19 20:43 - Andrei Borzenkov:
Not really. Attach your /etc/default/grub.
Here is what /etc/default/grub from my Tumbleweed installation looks like:
START >>>
I think the idea was for you to use the File/attach menu of Thunderbird ;-)
That way there is no line wrap.
Yes, but aren't attachments forbidden on this list?
Doesn't really matter. There aren't any line-wraps that make it difficult to read anyway. -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
On 17/02/2019 21.33, Hagen Buliwyf wrote:
17.02.19 21:08 - Carlos E. R.:
On 17/02/2019 20.57, Hagen Buliwyf wrote:
17.02.19 20:43 - Andrei Borzenkov:
Not really. Attach your /etc/default/grub.
Here is what /etc/default/grub from my Tumbleweed installation looks like:
START >>>
I think the idea was for you to use the File/attach menu of Thunderbird ;-)
That way there is no line wrap.
Yes, but aren't attachments forbidden on this list?
Not really, specially text. -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
17.02.2019 22:57, Hagen Buliwyf пишет:
17.02.19 20:43 - Andrei Borzenkov:
17.02.2019 21:13, Hagen Buliwyf пишет:
Did you test on "bare metal" or in a VM?
VM. I do not see how it matters.
I'm running Tumbleweed on "bare metal". zypper dup reports no updates available. So my system should have "the same SW versions" as yours.
Any ideas what i have done wrong and what else i could try?
Not really. Attach your /etc/default/grub.
Here is what /etc/default/grub from my Tumbleweed installation looks like:
looks fine. -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
17.02.19 21:11 - Andrei Borzenkov:
17.02.2019 22:57, Hagen Buliwyf пишет:
17.02.19 20:43 - Andrei Borzenkov:
17.02.2019 21:13, Hagen Buliwyf пишет:
Did you test on "bare metal" or in a VM?
VM. I do not see how it matters.
I'm running Tumbleweed on "bare metal". zypper dup reports no updates available. So my system should have "the same SW versions" as yours.
Any ideas what i have done wrong and what else i could try?
Not really. Attach your /etc/default/grub.
Here is what /etc/default/grub from my Tumbleweed installation looks like:
looks fine.
Even if openSUSE Tumbleweed installs into \EFI\opensuse (at the moment?) openSUSE Leap 15 installs in \EFI\osl15. So i do have separate directories for each OS. That is what i was looking for. And hopefully i will find what i messed up when i try to get more familiar with Tumbleweed in the next days. Thank you all for all your help. Regards Hagen -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
17.02.19 16:30 - Hagen Buliwyf:
Both openSUSE Leap 15.0 and openSUSE Tumbleweed install GRUB2 bootloader files (on an UEFI system) in "\EFI\opensuse".
Consulting the GRUB2 manual shows that "grub-install --target=x86_64-efi --bootloader-id="name_of_directory" would allow for different names (like "opensuse" and "tumbleweed").
How can i change this behavior and make each OS installing its bootloader files in its own directory?
Thank you for any hint.
Regards
Hagen
PS I'm aware that i could use separat ESPs or handle GRUB2 manually. But that is not what i want.
Last night i re-installed Tumbleweed and now the problem is gone; i.e. when installing GRUB2 (for UEFI) it is placed (as expected) in \EFI\VALUE_OF_GRUB_DISTRIBUTOR. I don't know what i messed up but this was definitely my fault. Sorry! Thanks to all of you for your help. Regards Hagen -- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org
participants (5)
-
Andrei Borzenkov
-
Carlos E. R.
-
Dave Howorth
-
hadron
-
Hagen Buliwyf