[SOLVED] Debian 12: how disable automatic call of grub-install ?
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Why do you upgrade Grub on Debian if you don't use/need it? Did you try the suggestion above in post 11?
Does that mean you are not sure? It should be easy enough to determine as the background on the menu for each system is very different. If that doesn't tell you, you could try running boot repair which you can download from the site at the link below. If you select the option to Create BootInfo summary, it will output a report and the info on which OS is in the MBR will be at the top of the report. Do NOT do any repairs.
Does please exist more simple way ? (I thought most users were doing upgrades this way)
I'm not sure which part of disk grub writes to. I'm sure which grub is currently installed / active. Both grubs look very differently. Even if they look the same, Debian's grub differs in that it does not contain openSUSE (as I already said)
If you wish a fully updated Bookworm that works normally, but wish to use its Grub, then you'll almost certainly need to reinstall openSUSE without using BTRFS, and without its Grub. openSUSE TW's Grub is typically the latest available from upstream, newer and not directly compatible with Bookworm's. Trixie's Grub 2.12-2 might do better with TW's 2.12-14, but you really will be better off purging one Grub or the other, and better (necessary?) the oldest if you wish to keep using BTRFS.
Not having Grub installed in Debian will not affect its security.
To repeat what has already been stated, only one bootloader is needed per (Linux-only) PC. To have otherwise is an unnecessary troublesome nuisance at a minimum, or worse.
this is what you need to solve. I don't know why is it not detected, probably only a configuration issue, but the solution is not to disable grub-install.
One way to boot opensuse from debian grub is to create a menu entry to call opensuse grub.cfg in /etc/grub.d/40_custom similar to this:
Code:
menuentry 'opensuse cfg' {
set root=(hd0,2)
configfile /grub2/grub.cfg
}
and then run update-grub.
Notes:
(hd0,2) represents the partition grub2 directory is on with drives counting from zero and partitions from one.
/Grub2/grub.cfg would be the path if there is a boot partition, otherwise the path most likely will be /boot/grub2/grub.cfg
change each accordingly to match your system.
Last edited by colorpurple21859; 05-14-2024 at 04:33 AM.
If you wish a fully updated Bookworm that works normally, but wish to use its Grub, then you'll almost certainly need to reinstall openSUSE without using BTRFS, and without its Grub. openSUSE TW's Grub is typically the latest available from upstream, newer and not directly compatible with Bookworm's. Trixie's Grub 2.12-2 might do better with TW's 2.12-14, but you really will be better off purging one Grub or the other, and better (necessary?) the oldest if you wish to keep using BTRFS.
Not having Grub installed in Debian will not affect its security.
To repeat what has already been stated, only one bootloader is needed per (Linux-only) PC. To have otherwise is an unnecessary troublesome nuisance at a minimum, or worse.
this is what you need to solve. I don't know why is it not detected, probably only a configuration issue, but the solution is not to disable grub-install.
AFAIK it's caused by physical interpretation of the BTRFS snapshot. It's unsolvable in the current state.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.