LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-14-2024, 03:58 AM   #1
MakeTopSite
Member
 
Registered: Jan 2021
Location: EU
Distribution: Ubuntu, openSUSE Leap & TW, Devuan, Debian
Posts: 257

Rep: Reputation: 3
Debian 12: how disable automatic call of grub-install ?


I only want it to be called manually.
 
Old 02-14-2024, 04:33 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,913

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
the packages may have a postinstall script, which will be automatically started after copying the files. Without that the installation is incomplete.
So if you install a new kernel grub-install will be automatically executed.
I don't know your case, if it is similar or not, you gave no any details.
 
Old 02-14-2024, 04:39 AM   #3
MakeTopSite
Member
 
Registered: Jan 2021
Location: EU
Distribution: Ubuntu, openSUSE Leap & TW, Devuan, Debian
Posts: 257

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by pan64 View Post
So if you install a new kernel grub-install will be automatically executed.
That is my case where I need grub-install not to be called automatically. Which details should I please post ?
 
Old 02-14-2024, 05:13 AM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,360

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Is this during installation or an installed system?
 
Old 02-14-2024, 05:40 AM   #5
MakeTopSite
Member
 
Registered: Jan 2021
Location: EU
Distribution: Ubuntu, openSUSE Leap & TW, Devuan, Debian
Posts: 257

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by colorpurple21859 View Post
Is this during installation or an installed system?
an installed system
 
Old 02-14-2024, 06:01 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,913

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
Quote:
Originally Posted by MakeTopSite View Post
That is my case where I need grub-install not to be called automatically. Which details should I please post ?
The case we know nothing about.
All we know is that grub-install was (automatically?) invoked, which you don't want.

What are you trying to do at all?
What do you want to achieve (it is not enough to say what you don't want)?
What commands did you execute, what's happened?
What OS and environment do you have?
Why do you want to skip it?
http://www.catb.org/~esr/faqs/smart-...html#beprecise

This is about 5 questions, a 3 word answer will not be enough.
 
Old 02-14-2024, 06:18 AM   #7
MakeTopSite
Member
 
Registered: Jan 2021
Location: EU
Distribution: Ubuntu, openSUSE Leap & TW, Devuan, Debian
Posts: 257

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by pan64 View Post
The case we know nothing about.
All we know is that grub-install was (automatically?) invoked, which you don't want.

What are you trying to do at all?
What do you want to achieve (it is not enough to say what you don't want)?
What commands did you execute, what's happened?
What OS and environment do you have?
Why do you want to skip it?
http://www.catb.org/~esr/faqs/smart-...html#beprecise

This is about 5 questions, a 3 word answer will not be enough.
grub-install is automatically invoked after some upgrades which I don't want.

I use multiboot with openSUSE Tumbleweed on btrfs which Debian's grub can't access (result is that TW is not visible in Debian's grub menu) so I boot Debian using TW's grub. I want use TW's grub only to boot both distros (and they are usually both visible in TW's grub).

I did not try any command so far.

Both Debian and TW are 32bit and use IceWM.

Because TW is not visible in Debian's grub menu.

Last edited by MakeTopSite; 02-14-2024 at 06:21 AM.
 
Old 02-14-2024, 07:32 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,913

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
you don't need two grubs, one is enough and it should detect both OSs. At least I think that would be the optimal solution.
You can implement a dummy grub-install script and replace the original, temporarily, if you wish.
It is not a good solution and may cause additional troubles, but anyway you can try it.
 
Old 02-14-2024, 07:38 AM   #9
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,534

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
I'd be surprised that grub-install is run on any updates. The grub-mkconfig script is run by some systems when a new kernel is installed. If you could, post which of the two systems does this, is it Debian or Opensuse? Are both of these systems Legacy/CSM installs and, if so is Opensuse in the MBR of the drive? Are both Debian and Opensuse on the same hard drive? In any case, you want to use the Opensuse Grub then make sure it has code in the MBR if a Legacy install or if EFI, it is set to first boot in the BIOS or if they are on separate drives, set the drive with Opensuse to first boot in the BIOS.
 
Old 02-14-2024, 09:12 AM   #10
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,360

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Uninstall the grub package that does grub-install, not sure which one, or uninstall all of the grub packages. Mark to hold the grub packages not to upgrade.
 
Old 02-15-2024, 06:45 AM   #11
_blackhole_
Member
 
Registered: Mar 2023
Distribution: FreeBSD
Posts: 92

Rep: Reputation: 68
Only one of the installed OS' should host the grub installation in any multi-boot scenario. Elect one OS for this purpose and remove grub entirely from all others.

This should have the desired result:

Code:
# apt-get purge grub*
Then reboot into the OS which hosts the grub install and set up from there.

Last edited by _blackhole_; 02-15-2024 at 06:48 AM.
 
Old 05-04-2024, 02:27 AM   #12
MakeTopSite
Member
 
Registered: Jan 2021
Location: EU
Distribution: Ubuntu, openSUSE Leap & TW, Devuan, Debian
Posts: 257

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by pan64 View Post
you don't need two grubs, one is enough and it should detect both OSs. At least I think that would be the optimal solution.
You can implement a dummy grub-install script and replace the original, temporarily, if you wish.
It is not a good solution and may cause additional troubles, but anyway you can try it.
I've tried it few times again but Debian's grub still can't detect TW.
 
Old 05-04-2024, 02:40 AM   #13
MakeTopSite
Member
 
Registered: Jan 2021
Location: EU
Distribution: Ubuntu, openSUSE Leap & TW, Devuan, Debian
Posts: 257

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by yancek View Post
I'd be surprised that grub-install is run on any updates. The grub-mkconfig script is run by some systems when a new kernel is installed. If you could, post which of the two systems does this, is it Debian or Opensuse? Are both of these systems Legacy/CSM installs and, if so is Opensuse in the MBR of the drive? Are both Debian and Opensuse on the same hard drive? In any case, you want to use the Opensuse Grub then make sure it has code in the MBR if a Legacy install or if EFI, it is set to first boot in the BIOS or if they are on separate drives, set the drive with Opensuse to first boot in the BIOS.
grub-install only run on grub package upgrade. But it is "enough" because repair take some time and is not trivial.

Both systems runs grub-install but problem is with Debian (it's grub does not contain openSUSE)

Both of these systems are Legacy/CSM installs.

Opensuse is in the MBR of the drive if I understand it correctly - grub was installed by
Code:
grub-install /dev/sda
Both Debian and Opensuse are on the same hard drive.

Booting and grub of the openSUSE is set properly and it works properly (until Debian calls grub-install).
 
Old 05-04-2024, 06:51 AM   #14
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,534

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Quote:
grub-install only run on grub package upgrade.
Why do you upgrade Grub on Debian if you don't use/need it? Did you try the suggestion above in post 11?

Quote:
Opensuse is in the MBR of the drive if I understand it correctly
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.

https://sourceforge.net/projects/boot-repair-cd/
 
Old 05-04-2024, 09:56 AM   #15
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,913

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
Quote:
Originally Posted by yancek View Post
Why do you upgrade Grub on Debian if you don't use/need it? Did you try the suggestion above in post 11?
It looks like OP won't tell us what is it all about, most probably an xy problem again. If I need to guess the problem is the last sentence:

Quote:
Booting and grub of the openSUSE is set properly and it works properly (until Debian calls grub-install).
OP wanted to fix it (to be able to select an OS). Obviously destroying grub is not the optimal solution.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How ro disable GRUB and install GRUB tools ? fredmyra Linux - Newbie 8 12-28-2022 05:28 PM
LXer: Set Up Automatic Update Installation Using DNF-Automatic Timer Unit LXer Syndicated Linux News 0 04-25-2022 07:54 PM
LXer: How to Enable/ Disable Automatic Login in Debian 10 LXer Syndicated Linux News 0 03-02-2020 05:30 PM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration