This applies to any other endeavourOS scripts that need root access.
These scripts should look for sudo or doas and fall back to the root account if those aren’t found.
This applies to any other endeavourOS scripts that need root access.
These scripts should look for sudo or doas and fall back to the root account if those aren’t found.
eos-update is just some extras on top of the regular pacman & yay.
There is no requirement to use it.
That said .. its not intended to be run as/with root. If you are having trouble for some reason then there is also the --help which would show you can do
eos-update --run-mode plain
Which should ensure it is run with ‘current privileges’.
(Though if one is signed in as root then this will automatically switch to --run-mode login)
This is not for eos-update, this is for the endeavourOS mirrorlist updater/ranker (eos-rankmirrors), the thing that runs when endeavouros-mirrorlist is updated.
That program tries to su root to replace the old mirrorlist with the new one.
I guess my eyes must owe ‘mirrorlist’ some money cuz they apparently avoided that bit masterfully.
Anyhoo..
So that required a bit of traversing.
From here
Not here
To here
To here
Where we finally have
I dont know why su is the choice here either.
But it does seem configurable.
If you want you can go to /etc/eos-script-lib-yad.conf and set it to whatever you might prefer.
Thanks, I just wish what I said in the OP was the default.