summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-10-07 09:30:21 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-10-07 09:30:21 (EDT)
commite5b9c874371cd416bff32efe72d5604574c93c70 (patch)
treea6aa40d215ad4fc6e057e05659d3d9d0fcd1506f
parent736382ad750e6fa0cf49181cd21c81500487c898 (diff)
opkg_install_all(): Switch to using sessions
-rw-r--r--lib/opkg.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/opkg.sh b/lib/opkg.sh
index 1966ebc..046bc2f 100644
--- a/lib/opkg.sh
+++ b/lib/opkg.sh
@@ -21,12 +21,14 @@
[ "x${_OPKG_SM+set}" = 'xset' ] && return 0
_OPKG_SM=1
-use chroot
+use session
opkg_install_all()
{
local root="${1}"
- chroot_exec "${root}" /bin/sh -c \
+ session_begin "${root}" . :
+ session_exec /bin/sh -c \
'opkg install $(opkg list-installed | cut -d " " -f 1)'
+ session_end
}