mkosi: Unmount /etc/resolv.conf if it's a mountpoint

This commit is contained in:
Daan De Meyer
2023-08-07 20:17:41 +02:00
committed by Luca Boccassi
parent 97eb826821
commit b57e752220

View File

@@ -76,7 +76,9 @@ if command -v authselect >/dev/null; then
fi
fi
# Let tmpfiles.d/systemd-resolve.conf handle the symlink
# Let tmpfiles.d/systemd-resolve.conf handle the symlink. /etc/resolv.conf might be mounted over so undo that
# if that's the case.
mountpoint -q /etc/resolv.conf && umount /etc/resolv.conf
rm -f /etc/resolv.conf
. /usr/lib/os-release