Ocawesome101 / 486linux

Files necessary for setting up a 486Linux image, along with a script for it
5 stars 1 forks source link

Make sure /sbin is in the path on some systems #1

Open megatog615 opened 1 year ago

megatog615 commented 1 year ago

On my system(Debian Testing, technically 12), some of the required utilities are located in /sbin, which is not in the user's $PATH by default. If running the script without sudo, it will fail to find various utilities like 'sfdisk', which is really at /sbin.

My workaround is to put PATH="/sbin:$PATH" before the command to make it work. I think it should have a more robust detection scheme, though.

Ocawesome101 commented 1 year ago

i am incredulous that someone else was crazy enough to actually use this. thanks for the tip - i'll add checks for that.