[PATCH 2/2] pb-console: don't modify PATH unless it's empty
Jeremy Kerr
jk at ozlabs.org
Tue Oct 8 20:33:54 AEDT 2019
We're now running pb-console through a proper login shell, so we
shouldn't need to modify PATH, as we expect it to be properly set up by
the shell profile.
This change removes the unconditional PATH modification, so we only set
a basic PATH if it's currently empty.
Signed-off-by: Jeremy Kerr <jk at ozlabs.org>
---
utils/pb-console | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/utils/pb-console b/utils/pb-console
index 8245b33..012d242 100644
--- a/utils/pb-console
+++ b/utils/pb-console
@@ -119,10 +119,8 @@ esac
# we may have been run from udev - ensure we have a sensible PATH
if [ -z "$PATH" ]
then
- PATH=/usr/bin:/usr/sbin:/bin:/sbin
+ export PATH=/usr/bin:/usr/sbin:/bin:/sbin
fi
-PATH=/var/lib/pb-plugins/bin:$PATH
-export PATH
verbose_opt=
if $pb_config debug | grep -q enabled
--
2.20.1
More information about the Petitboot
mailing list