summaryrefslogtreecommitdiffstats
path: root/lib/cmd
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-10-05 13:58:37 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-10-05 13:58:37 (EDT)
commit4d9434db90e810b404221f7c0020859c25a2ac51 (patch)
tree222602828b71da815bf8109affeab5e86ba3915d /lib/cmd
parent7817ebf3c7cd10c4db1c907ff334bf678ee53232 (diff)
cmd/opkg: Switch to using sessions
Diffstat (limited to 'lib/cmd')
-rw-r--r--lib/cmd/opkg.sh6
1 files changed, 4 insertions, 2 deletions
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 @@
# <http://www.gnu.org/licenses/>.
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
*[!\ ]*)