summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2019-08-15 11:25:14 +0800
committerJeremy Kerr <jk@ozlabs.org>2019-10-08 14:20:29 +0800
commit514a9a1ab0d9de6bffb4398b6202b100401263b4 (patch)
tree36b10b93888a29299fcdec8215d0d167aeeeb5db /utils
parent7edc34c4ee8dc0913ea1a4ec64d3fbe6d64afc6d (diff)
downloadtalos-petitboot-514a9a1ab0d9de6bffb4398b6202b100401263b4.tar.gz
talos-petitboot-514a9a1ab0d9de6bffb4398b6202b100401263b4.zip
pb-console: start shell as a login shell
The environment that pb-console starts is minimal, as we have likely been run by udev. Because we're starting a shell, we want the proper profile set up, so run as a login shell. This assumes the shell accepts -l, but we already have an assumption for supporting -m (as /bin/ash does). Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'utils')
-rw-r--r--utils/pb-console2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/pb-console b/utils/pb-console
index ab5eaaa..8245b33 100644
--- a/utils/pb-console
+++ b/utils/pb-console
@@ -141,5 +141,5 @@ while :
do
$ui $verbose_opt
reset
- $shell -m
+ $shell -ml
done
OpenPOWER on IntegriCloud