Skip to content

Commit 629346f

Browse files
committed
Automagically source zfsbootmenu-lib in emergency shell
1 parent 35d0b99 commit 629346f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

90zfsbootmenu/zfsbootmenu-lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,7 @@ emergency_shell() {
15771577

15781578
echo -n "Launching emergency shell: "
15791579
echo -e "${message}\n"
1580-
/bin/bash
1580+
/bin/bash --rcfile <( test -f /lib/zfsbootmenu-lib.sh && echo "source /lib/zfsbootmenu-lib.sh" )
15811581
}
15821582

15831583
# prints: nothing

0 commit comments

Comments
 (0)