modified-deb-ostree-builder: Copy host system's /etc/resolv.conf

This is necessary when installing extra packages with non-trivial
dependencies.
This commit is contained in:
Simon McVittie 2019-08-27 23:54:48 +01:00
parent fb398974cc
commit 6bbd856924
1 changed files with 1 additions and 0 deletions

1
debian/ostree-boot-examples/modified-deb-ostree-builder vendored Normal file → Executable file
View File

@ -167,6 +167,7 @@ multistrap -f "$CONFIG" -d "$BUILDDIR"
if [ -d /root/extra-packages ]; then
mkdir "$BUILDDIR/root/extra-packages"
cp /root/extra-packages/*.deb "$BUILDDIR/root/extra-packages"
install -m644 /etc/resolv.conf "$BUILDDIR/etc/resolv.conf"
chroot "$BUILDDIR" apt -y update
chroot "$BUILDDIR" apt -y install /root/extra-packages/*.deb
rm -fr "$BUILDDIR/root/extra-packages"