basename command not found when ujust regenerate-grub run
Screenshot attached, seems like a PATH issue? But genuinely completely lost on this. basename exists in bin so not really sure what is happening here, I'm a little out of my depth

9 Replies
I suspect that the /usr/sbin/grub2-mkconfig script is broken in your specific image. Could you please run
rpm-ostree status so I can see exactly what image you are running. Maybe I can reproduce itOk so it's not a Bazzite image problem. I installed the same image and the same packages and I'm not getting the error

If you run from the super user does it resolve then or not.
Does it return "/usr/sbin/basename"?
Also did you make any changes to your /etc/sudoers file?
uhhhh, well that's not right.
Regarding /etc/sudoers I have no memory of making any changes.
So I guess a problem with PATH in elevation? "which" works unelevated.
and looking in /etc/sudoers as a layman nothing sticks out as clearly wrong.
Do you have anything custom in in your /etc/sudoers.d folder? You can run
sudo ls /etc/sudoers.d to find outefibootmgr-config and enable-pwfeedback are the only things in sudoers.d
If I run
sudo env | grep PATH I get "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/lib/snapd/snap/bin:/home/linuxbrew/.linuxbrew/bin
"
That's set by the /etc/sudoers in this line
interesting i get
what's odd is i have the defaults line you mentioned in sudoers
Trying to figure out where this PATH i have is defined