From: Vladimir Burkin <
mxv...@gmail.com>
When building an image based on Debian Buster the rootfs installation
fails on dpkg because /var/lib/dpkg/available is missing.
isar-mmdebstrap.inc tries to work around this by adding an mmdebstrap
hook. The hook uses touch /var/lib/dpkg/available, but it runs on the
host rather than inside the mmdebstrap rootfs. The proposed fix is to
use the hook parameter $1 (the mmdebstrap rootfs path) when creating
the file.
Signed-off-by: Vladimir Burkin <
mxv...@gmail.com>
Signed-off-by: Anton Mikanovich <
ami...@ilbers.de>
---
meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc
index 80b13a9e..73fe9434 100644
--- a/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc
+++ b/meta/recipes-core/isar-mmdebstrap/isar-mmdebstrap.inc
@@ -18,7 +18,7 @@ BOOTSTRAP_TMPDIR = "${WORKDIR}/tempdir"
MM_HOOK_JESSIE = "/usr/share/mmdebstrap/hooks/jessie-or-older"
DPKG_HOOKS ?= "${@'--hook-dir='+d.getVar('MM_HOOK_JESSIE') \
if os.path.isdir(d.getVar('MM_HOOK_JESSIE')) \
- else '--customize-hook=\'touch /var/lib/dpkg/available\''}"
+ else '--customize-hook=\'touch $1/var/lib/dpkg/available\''}"
MMHOOKS:focal ?= "${DPKG_HOOKS}"
MMHOOKS:buster ?= "${DPKG_HOOKS}"
--
2.34.1