Back out change to prepend /sbin:/bin to $PATH, just overwrite $PATH

with these in the normal case.

Set MAKEDEVPATH in sysinstall to include the /mnt2 stuff before starting
the fixit shell.
This commit is contained in:
truckman 2000-11-05 17:59:29 +00:00
parent 6a92765ad4
commit ba9ae7c4f7
4 changed files with 7 additions and 1 deletions

View File

@ -150,7 +150,7 @@
if [ -n "$MAKEDEVPATH" ]; then
PATH="$MAKEDEVPATH"
else
PATH=/sbin:/bin:$PATH
PATH=/sbin:/bin
fi
umask 77

View File

@ -432,6 +432,8 @@ fixit_common(void)
msgDebug("fixit shell: Unable to get terminal attributes!\n");
setenv("PATH", "/bin:/sbin:/usr/bin:/usr/sbin:/stand:"
"/mnt2/stand:/mnt2/bin:/mnt2/sbin:/mnt2/usr/bin:/mnt2/usr/sbin", 1);
setenv("MAKEDEVPATH", "/sbin:/bin:/stand:"
"/mnt2/sbin:/mnt2/bin:/mnt2/stand", 1);
if (strcmp(variable_get(VAR_FIXIT_TTY), "serial") == 0) {
printf("Waiting for fixit shell to exit.\n"
"When you are done, type ``exit'' to exit\n"

View File

@ -432,6 +432,8 @@ fixit_common(void)
msgDebug("fixit shell: Unable to get terminal attributes!\n");
setenv("PATH", "/bin:/sbin:/usr/bin:/usr/sbin:/stand:"
"/mnt2/stand:/mnt2/bin:/mnt2/sbin:/mnt2/usr/bin:/mnt2/usr/sbin", 1);
setenv("MAKEDEVPATH", "/sbin:/bin:/stand:"
"/mnt2/sbin:/mnt2/bin:/mnt2/stand", 1);
if (strcmp(variable_get(VAR_FIXIT_TTY), "serial") == 0) {
printf("Waiting for fixit shell to exit.\n"
"When you are done, type ``exit'' to exit\n"

View File

@ -432,6 +432,8 @@ fixit_common(void)
msgDebug("fixit shell: Unable to get terminal attributes!\n");
setenv("PATH", "/bin:/sbin:/usr/bin:/usr/sbin:/stand:"
"/mnt2/stand:/mnt2/bin:/mnt2/sbin:/mnt2/usr/bin:/mnt2/usr/sbin", 1);
setenv("MAKEDEVPATH", "/sbin:/bin:/stand:"
"/mnt2/sbin:/mnt2/bin:/mnt2/stand", 1);
if (strcmp(variable_get(VAR_FIXIT_TTY), "serial") == 0) {
printf("Waiting for fixit shell to exit.\n"
"When you are done, type ``exit'' to exit\n"