Skip to content

Commit

Permalink
pb-console: start shell as a login shell
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jk-ozlabs committed Oct 8, 2019
1 parent 7edc34c commit 514a9a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/pb-console
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,5 @@ while :
do
$ui $verbose_opt
reset
$shell -m
$shell -ml
done

0 comments on commit 514a9a1

Please sign in to comment.