Debootstrap only supports one apt repository to install packages from.
As a result, we do not consider the updates repo during debootstrap
causing us install a second kernel when we do an apt-get dist-upgrade
during build.
Lets use debootstrap to get us a minimal chroot, then add our repos and
install the correct packages from the start.
We also have to reorder the dpkg root.d scripts which configure apt so
they run before we perform our package installs.
It's important to have the CA certificates on the target for ssl
crypto apps to work. Plus it's also important during bootstrapping
with diskimage-builder as tools like 'pip' etc need the certificates
in place in order to work properly. This fixes opensuse-minimal
image generation with the 'simple-init' element which was causing the
following error:
SUSE packages the 'xml' python module as a separate package so make
sure it's pulled in before we attempt to install the pip module
since the latter depends on it. Fixes the following problem when
building with the opensuse-minimal and pip-and-virtualenv elements:
Traceback (most recent call last):
File "/tmp/get-pip.py", line 19177, in <module>
main()
File "/tmp/get-pip.py", line 194, in main bootstrap(tmpdir=tmpdir)
File "/tmp/get-pip.py", line 82, in bootstrap
import pip
File "/tmp/tmpOiESjX/pip.zip/pip/__init__.py", line 16, in <module>
File "/tmp/tmpOiESjX/pip.zip/pip/vcs/subversion.py", line 9, in <module>
File "/tmp/tmpOiESjX/pip.zip/pip/index.py", line 32, in <module>
File "/tmp/tmpOiESjX/pip.zip/pip/_vendor/html5lib/__init__.py", line 16, in <module>
File "/tmp/tmpOiESjX/pip.zip/pip/_vendor/html5lib/html5parser.py", line 6, in <module>
File "/tmp/tmpOiESjX/pip.zip/pip/_vendor/html5lib/inputstream.py", line 10, in <module>
File "/tmp/tmpOiESjX/pip.zip/pip/_vendor/html5lib/utils.py", line 10, in <module>
ImportError: No module named xml.etree.ElementTree
Reviewed: https:/ /review. openstack. org/426987 /git.openstack. org/cgit/ openstack/ diskimage- builder/ commit/ ?id=b6e631360f7 8833c70d3c6e3d9 1d507554524a81
Committed: https:/
Submitter: Jenkins
Branch: feature/v2
commit 45df304d488a030 9fb981a4964238b 81a370c358
Author: Gregory Haynes <email address hidden>
Date: Tue Nov 1 10:38:20 2016 -0700
Perform package install outside of debootstrap
Debootstrap only supports one apt repository to install packages from.
As a result, we do not consider the updates repo during debootstrap
causing us install a second kernel when we do an apt-get dist-upgrade
during build.
Lets use debootstrap to get us a minimal chroot, then add our repos and
install the correct packages from the start.
We also have to reorder the dpkg root.d scripts which configure apt so
they run before we perform our package installs.
Change-Id: I6a592db6f0a01d 3b19d8e0786e63f 1315a1ef647
Closes-Bug: #1637516
commit 22952b7ea0543bb 4f446752976d1d8 ba232b021a
Author: Paul Belanger <email address hidden>
Date: Mon Nov 21 10:15:09 2016 -0500
Improve checksum performance for images
Do md5 and sha256 in parallel to speed things up for larger images.
Change-Id: Ib782fe54e4286b a2749a7ab7247f5 d41a887a370
Signed-off-by: Paul Belanger <email address hidden>
commit 35e878b6d9b7d7b a9414a12058250f 420d11c139
Author: Markos Chandras <email address hidden>
Date: Tue Nov 29 16:09:40 2016 +0000
elements: zypper-minimal: Add ca-certificates -mozilla package
It's important to have the CA certificates on the target for ssl
crypto apps to work. Plus it's also important during bootstrapping
with diskimage-builder as tools like 'pip' etc need the certificates
in place in order to work properly. This fixes opensuse-minimal
image generation with the 'simple-init' element which was causing the
following error:
Download error on https:/ /pypi.python. org/simple/: [SSL: _VERIFY_ FAILED] certificate verify failed (_ssl.c:590)
CERTIFICATE
Change-Id: Ie94cd3556f8ae5 23f60ce0155ba18 ed752e6fbb6
commit bc6be8542417dee 4d20b12685106c0 ce46ec2fb3
Author: Ian Wienand <email address hidden>
Date: Wed Nov 23 14:09:44 2016 +1100
Trace package install in package-installs-v2
When running the package install, trace the output so we can see what
packages were installed.
Change-Id: I5442f544ff0ef3 ddffdbe6b898d17 8548d699a41
commit d84df6034522c1b cbc56fc5faff29d c548d58402
Author: Markos Chandras <email address hidden>
Date: Thu Oct 20 18:53:30 2016 +0100
elements: pip-and-virtualenv: Add python-xml dependency
SUSE packages the 'xml' python module as a separate package so make
sure it's pulled in before we attempt to install the pip module
since the latter depends on it. Fixes the following problem when
building with the opensuse-minimal and pip-and-virtualenv elements:
Traceback (most recent call last):
bootstrap( tmpdir= tmpdir) /pip.zip/ pip/__init_ _.py", line 16, in <module> /pip.zip/ pip/vcs/ subversion. py", line 9, in <module> /pip.zip/ pip/index. py", line 32, in <module> /pip.zip/ pip/_vendor/ html5lib/ __init_ _.py", line 16, in <module> /pip.zip/ pip/_vendor/ html5lib/ html5parser. py", line 6, in <module> /pip.zip/ pip/_vendor/ html5lib/ inputstream. py", line 10, in <module> /pip.zip/ pip/_vendor/ html5lib/ utils.py" , line 10, in <module> ElementTree
File "/tmp/get-pip.py", line 19177, in <module>
main()
File "/tmp/get-pip.py", line 194, in main
File "/tmp/get-pip.py", line 82, in bootstrap
import pip
File "/tmp/tmpOiESjX
File "/tmp/tmpOiESjX
File "/tmp/tmpOiESjX
File "/tmp/tmpOiESjX
File "/tmp/tmpOiESjX
File "/tmp/tmpOiESjX
File "/tmp/tmpOiESjX
ImportError: No module named xml.etree.
Change-Id: I1bec12dfcde05f b07f41bcec99414 8c3eacbb287
commit f9244a8fcefd0eb b79b3ed171d511e 6f3eac4a6c
Author: gecong1973 <email address hidden>
Date: Fri Nov 18 10:48:05 2016 +0800
Fix a typo
TrivialFix
Change-Id: Iebe82e616eed2d 9b9a99a9714230d 480adbd055b