sabayon_iso_build.sh: Initialize resolv.conf
This commit is contained in:
committed by
Ettore Di Giacinto
parent
92dbd738d6
commit
e3c462740f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user