LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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: 252

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,855

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
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: 252

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,352

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
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: 252

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,855

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
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: 252

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,855

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
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,517

Rep: Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493
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,352

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
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: 88

Rep: Reputation: 67
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.
 
  


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 08:55 AM.

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