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:
parent
fb398974cc
commit
6bbd856924
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue