summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2015-04-14 16:23:36 +1000
committerJeremy Kerr <jk@ozlabs.org>2015-04-14 16:23:36 +1000
commitf166fe2b62d781109e3a88736db96613af8c71d9 (patch)
tree5a247b4c3614c8d52f3b15f7b11be5bf08a6e4b9 /utils
parent388e5c51b182e904c088d14c387f61162b07aee6 (diff)
downloadtalos-petitboot-f166fe2b62d781109e3a88736db96613af8c71d9.tar.gz
talos-petitboot-f166fe2b62d781109e3a88736db96613af8c71d9.zip
utils/pb-console: establish PATH before running pb-config
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'utils')
-rw-r--r--utils/pb-console7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/pb-console b/utils/pb-console
index 64bf77f..36b9c03 100644
--- a/utils/pb-console
+++ b/utils/pb-console
@@ -104,6 +104,13 @@ case "$(tty)" in
;;
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
+fi
+export PATH
+
verbose_opt=
if $pb_config debug | grep -q enabled
then
OpenPOWER on IntegriCloud