mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
mkosi: Unmount /etc/resolv.conf if it's a mountpoint
This commit is contained in:
committed by
Luca Boccassi
parent
97eb826821
commit
b57e752220
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user