No, it can not be removed when installing grub in Manjaro repo. look at pacman -Si grub to use the dependency grub-update
Repository : core
Name : grub
Version : 2.12-1
Description : GNU GRand Unified Bootloader (2)
Architecture : x86_64
...
Depends On : sh xz gettext device-mapper grub-update
...
First remove all grub dependencies, then install grub. $ sudo pacman -S grub --ignore grub-update
resolving dependencies...
warning: ignoring package grub-update-2.12-1
warning: cannot resolve "grub-update", a dependency of "grub"
:: The following package cannot be upgraded due to unresolvable dependencies:
grub
:: Do you want to skip the above package for this upgrade? [y/N] N
error: failed to prepare transaction (could not satisfy dependencies)
:: unable to satisfy dependency 'grub-update' required by grub
There are some reasons, but they are not important.
“bloat”
It looks like a dead lock: A needs B, B needs A.
I did not notice grub was in the split to two packages in the repo a few months ago. That surprises me very little today.
I just asked why grub was forced to depend on grub-update. that is not important. That is up to Manjaro.
That works me after my testing.
It can ignores /usr/bin/update-grub
@Zesko No “proof” is required other than you have not explained a single thing you’re flailing wildly about. How do you expect anyone to understand what you’re on about?
If you think this is “solved”, then there’s nothing left to discuss. The post will be closed after the timer runs out.
$ cat $(which update-grub)
#! /bin/sh
set -e
grub-mkconfig -o /boot/grub/grub.cfg "$@"
# workaround for https://git.savannah.gnu.org/cgit/grub.git/commit/?id=3cf2e848bc03c44d30bb87e583d12efe7e7ccf75
# if grub is not updated in MBR/EFI dashes still won't work, hence we remove them
sed -i -e '/cryptomount -u/ {s/-//g;s/ u/ -u/g}' /boot/grub/grub.cfg
@Zesko it is needed, otherwise Manjaro doesn’t function as it would normally. I made it a split package so an alternative script can be created. One of my projects needed a different script. Simply add provides="grub-update" to any package you want to provide an alternative /usr/bin/update-grub script.
It is already needed.
I think some people misunderstood what I meant. I try to formulate English sentences.
I would suggest that you can separate Grub PKGBUILD to two PKGBUILDs (Grub and Grub-update) to prevent a deadlock.
IgnorePkg is impossible because of the deadlock: A needs B and B needs A.
Yes, any packages can provide grub-update if they need, that is fine. That is not about the deadlock.
I didn’t mean these packages, but I only mean Grub and Grub-update on this topic.
PS: I didn’t mark your solution but it was marked by Manjaro. It’s up to Manjaro