diff mbox series

[1/2] pb-console: start shell as a login shell

Message ID 20191008093354.15060-1-jk@ozlabs.org
State Accepted
Headers show
Series [1/2] pb-console: start shell as a login shell | expand

Commit Message

Jeremy Kerr Oct. 8, 2019, 9:33 a.m. UTC
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>
---
 utils/pb-console | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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