From e5b9c874371cd416bff32efe72d5604574c93c70 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 07 Oct 2014 09:30:21 -0400 Subject: opkg_install_all(): Switch to using sessions --- (limited to 'lib') 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 } -- cgit v0.9.1