summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorRaphaël Hertzog <raphael@offensive-security.com>2019-12-19 16:53:30 +0100
committerRaphaël Hertzog <raphael@offensive-security.com>2019-12-19 16:53:30 +0100
commitbca7af4ecb24f93fe638a39931b601883600d111 (patch)
tree8f34b6e6fba6c3a2c0fc585ff0e5fd6da3de1585 /functions
parent15c46fa15273f7302964291e767af33a2cdf2334 (diff)
downloadvyos-live-build-bca7af4ecb24f93fe638a39931b601883600d111.tar.gz
vyos-live-build-bca7af4ecb24f93fe638a39931b601883600d111.zip
installer_debian-installer: don't mess with /var/lib/dpkg/status
Use a similar trick as for chroot_live-packages. Relates to #944983.
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/chroot.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/functions/chroot.sh b/functions/chroot.sh
index 0b54a3925..5d4108708 100755
--- a/functions/chroot.sh
+++ b/functions/chroot.sh
@@ -47,3 +47,9 @@ Chroot_has_package() {
fi
return 1
}
+
+Chroot_package_list() {
+ CHROOT="${1:-chroot}"; shift
+
+ dpkg-query --admindir=${CHROOT}/var/lib/dpkg -W -f'${Package}\n'
+}