There it is, your failure.
Smartie!
And you hate systemd because of the bloat?
I have it set up in a virtual box to run the Tamriel Trade Center client for eso but I couldnāt get it to run under wine.
I encountered the same problem of not being able to run the command ā#update-grubā
So, I created the command following the instructions below and it works!
bash: update-grub: command not found
So I manually created one as below:
sudo nano /usr/sbin/update-grub
This will create a new empty file.
Type the following in the empty file:
#!/bin/sh
set -e
exec grub-mkconfig -o /boot/grub/grub.cfg ā$@ā
save the file and exit.
Then I ran in the terminal:
sudo chown root:root /usr/sbin/update-grub
sudo chmod 755 /usr/sbin/update-grub
This way I manually created an update-grub command just like many other distributions. Then I ran:
sudo update-grub
This is not how you update grub on an Arch based system. Those are ubuntu based commands!
Edit: Please use the following.
sudo grub-mkconfig -o /boot/grub/grub.cfg
Edit2: Please refer to the Arch Wiki
https://wiki.archlinux.org/title/GRUB
Edit: Sorry i misunderstood your post at first as i skimmed only the first few lines. I see what you did after realizing you couldnāt use sudo update-grub.
welcome on the forum @diyako indeed creating the script manually will work in the same way ā¦ you could also use an alias in your terminalRC or use the script by installing from AUR:
yay -S update-grub
aur/update-grub 0.0.1-7 (+93 2.48)
Simple wrapper around grub-mkconfig
In addition, keep in mind to not post in year old postsā¦ it will get lost and it is always recommended to open a new post instead.
I didnāt know that even existed.
What is the set -e to make it executable? I thought the exec does that? Iām bash illiterate!
set --help
I donāt RTFM.
Edit: Okayā¦
-e Exit immediately if a command exits with a non-zero status.
āclosingā
If the honored gentlemen have no objection to it?