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

Torben Hohn torben.hohn at linutronix.de
Tue Apr 9 16:48:13 CEST 2019


On Tue, Apr 09, 2019 at 04:18:11PM +0200, bage at linutronix.de wrote:
> 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>

Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>

i will merge it to master

> ---
>  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
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.linutronix.de/pipermail/elbe-devel/attachments/20190409/86938c50/attachment.sig>


More information about the elbe-devel mailing list