sabayon_iso_build.sh: Initialize resolv.conf

This commit is contained in:
Daniele Rondina
2019-02-16 18:30:42 +01:00
committed by Ettore Di Giacinto
parent 92dbd738d6
commit e3c462740f
+3 -4
View File
@@ -348,10 +348,6 @@ export_docker_rootfs () {
opts="--pull"
fi
echo "Checking if Docker is available, otherwise restarting it"
systemctl show --property ActiveState docker | \
grep -q inactive && systemctl start docker
echo "Building Spinbase with Docker image: "${docker_image}
# Cleaning previous generation
@@ -374,6 +370,9 @@ export_docker_rootfs () {
return 1
fi
echo "nameserver 1.1.1.1" > ${targetdir}/etc/resolv.conf
echo "nameserver 8.8.8.8" >> ${targetdir}/etc/resolv.conf
if [ ! -e "${undocker_output_directory}/dev/urandom" ]; then
echo "/dev/urandom not present on unpacked chroot. creating it "
mknod -m 444 "${undocker_output_directory}"/dev/urandom c 1 9 || return 1