Why is update-grub optional should it not be a dependency?
Why? Itās just one line script to run grub-mkconfig.
It also supplies /usr/bin/update-grub so without it no sudo update-grub command
Thatās what Iām talking about. You can run grub-mkconfig.
That still does not put in update-grub
You can create an alias in your favorite shell. For example:
For bash
/ zsh
users:
alias update-grub="grub-mkconfig -o /boot/grub/grub.cfg"
For fish
users:
abbr --add update-grub "grub-mkconfig -o /boot/grub/grub.cfg"
abbr
has an advantage and doesnāt lie to you when update-grub
is automatically formulated into the original command after entering the abbreviation in any terminal.
alias
or /usr/bin/update-grub
is lying to you, because you do not know what is original grub command in update-grub
.
The alias does not provide update-grub for me, Iām using bash
- Install
grub
- Open any terminal to run
bash
- Run
alias robin0800-updates-grub="grub-mkconfig -o /boot/grub/grub.cfg"
- Typing
sudo robin0800-updates-grub
to see if it works.
This is what I get
sudo: robin0800-updates-grub: command not found
You need to source .bashrc or wherever you put it.
Nevermind, for sudo you need to do it a bit differently.
You can try adding another alias
alias sudo='sudo '
What I did was add these two aliasā to .bashrc
alias update-grub=āgrub-mkconfig -o /boot/grub/grub.cfgā
alias sudo='sudo ā
then source ~/.bashrc
now sudo update-grub works
Well, I dont know why people want to use alias here but ok. Remember that the hook is part of the package when not installed. So update grub menu as needed.
I agree it is far better to have the update-grub package available but try as I might I can not get it installed, nothing seems to call it?
I think Zesko is asking for the CHOICE to do this.
For 99% of the users, me included, I am completely satisfied with using the provided update-grub
but I also understand the request for the ability to change that without breaking dependencies.
Merry xmas!
You are missing something.
grub.hook was in the previous version 2.12.1 of grub and but not in the old package grub-update.
This package grub-update only contained an additional shell script /usr/bin/update-grub
like a shortcut, nothing else. For this reason, it is unnecessary for some advanced users.
After the fixing, grub.hook was moved from the package grub to the other package update-grub, therefore we need this hook in the update-grub .
Are you sure? There are a lot of other Arch/Arch-based distros that donāt have the package update-grub
. Manjaro created it on its own package for Debian users who know update-grub
well.
Ok, maybe not 99%, I meant that figuratively. MOST users on Manjaro.
Yes, I think most manjaro users do not care about this.
But I also hope you get what you want even though you for no reason felt the need to be unfriendly towards me, even though I actually defended your stance.
Merry xmas.
This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.