[elbe-devel] [PATCH] Enable pbuilder create on stretch initvm

bage at linutronix.de bage at linutronix.de
Tue Apr 9 16:18:11 CEST 2019


From: Bastian Germann <bage at linutronix.de>

Running `elbe pbuilder create` with Elbe 4 fails because stretch's pbuilder
expects the APTCACHE directory to be already existing.
Fix this by creating an empty directory at the APTCACHE path.

Signed-off-by: Bastian Germann <bage at linutronix.de>
---
 elbepack/elbeproject.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/elbepack/elbeproject.py b/elbepack/elbeproject.py
index 80cbb8f8..7e95cd18 100644
--- a/elbepack/elbeproject.py
+++ b/elbepack/elbeproject.py
@@ -695,6 +695,12 @@ class ElbeProject (object):
                 self.builddir,
                 "pbuilder",
                 "hooks.d"))
+        self.log.do(
+            'mkdir -p "%s"' %
+            os.path.join(
+                self.builddir,
+                "pbuilder",
+                "aptcache"))
         self.log.do(
             'mkdir -p "%s"' %
             os.path.join(
-- 
2.20.1




More information about the elbe-devel mailing list