Skip to content

Commit 2c64a8b

Browse files
committed
use bash -l for bash shells
Signed-off-by: Zen <[email protected]>
1 parent 8cfacba commit 2c64a8b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ugrd/base/debug.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "desultory"
2-
__version__ = "1.2.0"
2+
__version__ = "1.2.1"
33

44
from zenlib.util import check_dict
55

@@ -11,7 +11,7 @@ def start_shell(self) -> str:
1111
' return',
1212
'fi',
1313
'einfo "Starting debug shell"',
14-
'bash']
14+
'bash -l']
1515

1616

1717
@check_dict('start_shell', value=True, message="Not enabling the debug shell, as the start_shell option is not set.")

src/ugrd/fs/mounts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ def _mount_fail(self) -> list[str]:
494494
r'einfo "Mounts:\n$(mount)"',
495495
'if [ "$(readvar RECOVERY_SHELL)" == "1" ]; then',
496496
' einfo "Entering recovery shell"',
497-
' exec bash',
497+
' bash -l',
498498
'fi',
499499
'prompt_user "Press enter to restart init."',
500500
'if [ "$$" -eq 1 ]; then',

0 commit comments

Comments
 (0)