From 4d9434db90e810b404221f7c0020859c25a2ac51 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 05 Oct 2014 13:58:37 -0400 Subject: cmd/opkg: Switch to using sessions --- diff --git a/lib/cmd/opkg.sh b/lib/cmd/opkg.sh index 3016773..92d4dcb 100644 --- a/lib/cmd/opkg.sh +++ b/lib/cmd/opkg.sh @@ -19,7 +19,7 @@ # . use profile -use chroot +use session use rand cmd_opkg_main() @@ -75,7 +75,9 @@ cmd_opkg_main() . "${root}/etc/os-release" profile_set "${ID}" - chroot_exec "${root}" opkg "${@}" + session_begin "${root}" . : + session_exec opkg "${@}" + session_end case "${opks}" in *[!\ ]*) -- cgit v0.9.1