]> piware.de Git - bin.git/commitdiff
build-devtoolbox: Fix resolv.conf link
authorMartin Pitt <martin@piware.de>
Sat, 3 Oct 2020 16:04:13 +0000 (18:04 +0200)
committerMartin Pitt <martin@piware.de>
Sat, 3 Oct 2020 16:04:13 +0000 (18:04 +0200)
systemd %postun creates the link to resolved's file, which does not
exist in the container.

build-devtoolbox

index 8395461bc9f7007289ddb9e95b4a332f0ed6e593..07dc22184ab3237c4e6f4f85dcf37ba2cb9912fb 100755 (executable)
@@ -20,6 +20,7 @@ echo "${ID}-${VERSION_ID}" | sudo tee /etc/hostname
 sudo hostname -F /etc/hostname
 
 sudo dnf update -y
 sudo hostname -F /etc/hostname
 
 sudo dnf update -y
+sudo ln -sfn ../run/host/run/NetworkManager/resolv.conf /etc/resolv.conf
 
 # this just refuses to rpm -i normally
 sudo dnf install -y cpio
 
 # this just refuses to rpm -i normally
 sudo dnf install -y cpio