summaryrefslogtreecommitdiffstats
path: root/utils/pb-console
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-07-09 15:24:38 +0800
committerGeoff Levand <geoff@infradead.org>2013-07-23 09:44:45 -0700
commit0134e4d24ea0d09c4daf64ea513099d246186d32 (patch)
tree48e38f926cb77913f92d04ec98bfe20d0f002a0c /utils/pb-console
parent45a091bf404b641b7d3570fd72dd1582689a1f7d (diff)
downloadtalos-petitboot-0134e4d24ea0d09c4daf64ea513099d246186d32.tar.gz
talos-petitboot-0134e4d24ea0d09c4daf64ea513099d246186d32.zip
pb-console: Read /etc/environment and /etc/locale
Since we're starting from no environment on the consoles, allow specifying an initial environment. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'utils/pb-console')
-rw-r--r--utils/pb-console8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/pb-console b/utils/pb-console
index 81be218..b1c8003 100644
--- a/utils/pb-console
+++ b/utils/pb-console
@@ -87,6 +87,14 @@ then
fi
fi
+for f in /etc/environment /etc/locale
+do
+ if [ -e "$f" ]
+ then
+ export $(cat "$f")
+ fi
+done
+
while :
do
$ui
OpenPOWER on IntegriCloud