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:
parent
6a92765ad4
commit
ba9ae7c4f7
@ -150,7 +150,7 @@
|
||||
if [ -n "$MAKEDEVPATH" ]; then
|
||||
PATH="$MAKEDEVPATH"
|
||||
else
|
||||
PATH=/sbin:/bin:$PATH
|
||||
PATH=/sbin:/bin
|
||||
fi
|
||||
umask 77
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user