mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
mkosi: Unmount /etc/resolv.conf if it's a mountpoint
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user