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:
1 parent
fb398974cc
commit
6bbd856924
1 file changed
+1
+1
@@ -167,6 +167,7 @@ multistrap -f "$CONFIG" -d "$BUILDDIR"
|
|||||||
if [ -d /root/extra-packages ]; then
|
if [ -d /root/extra-packages ]; then
|
||||||
mkdir "$BUILDDIR/root/extra-packages"
|
mkdir "$BUILDDIR/root/extra-packages"
|
||||||
cp /root/extra-packages/*.deb "$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 update
|
||||||
chroot "$BUILDDIR" apt -y install /root/extra-packages/*.deb
|
chroot "$BUILDDIR" apt -y install /root/extra-packages/*.deb
|
||||||
rm -fr "$BUILDDIR/root/extra-packages"
|
rm -fr "$BUILDDIR/root/extra-packages"
|
||||||
|
|||||||
Reference in new issue
Block a user