summaryrefslogtreecommitdiffstats
path: root/lib/cmd/shell.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cmd/shell.sh')
-rw-r--r--lib/cmd/shell.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/cmd/shell.sh b/lib/cmd/shell.sh
index 5c85d7e..9f5b6ba 100644
--- a/lib/cmd/shell.sh
+++ b/lib/cmd/shell.sh
@@ -19,7 +19,7 @@
# <http://www.gnu.org/licenses/>.
use profile
-use chroot
+use session
cmd_shell_main()
{
@@ -45,7 +45,7 @@ cmd_shell_main()
;;
esac
- chroot_mount "${root}"
+ session_begin "${root}" :
if [ ${#} -eq 0 ]; then
chroot "${root}" /bin/sh -c "cd '/prokit/wd/${$}'; /bin/sh"
printf '\n'
@@ -53,7 +53,7 @@ cmd_shell_main()
else
chroot "${root}" /bin/sh -c "cd '/prokit/wd/${$}'; ${*}"
fi
- chroot_umount "${root}"
+ session_end
case "${uname_s}" in
'Linux')