]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/networking/recipes/default.rb
Go back to unmounting resolv.conf but prevent path canonicalisation
[chef.git] / cookbooks / networking / recipes / default.rb
index 0989d8d11bdcadfed3cd61e8f61ebcae0a7a1aa2..9281aa3915ff1e73f3ecacaf16e908bbdf407204 100644 (file)
@@ -343,9 +343,8 @@ template "/etc/systemd/resolved.conf.d/99-chef.conf" do
 end
 
 if node[:filesystem][:by_mountpoint][:"/etc/resolv.conf"]
-  mount "/etc/resolv.conf" do
-    action :umount
-    device node[:filesystem][:by_mountpoint][:"/etc/resolv.conf"][:devices].first
+  execute "umount-resolve-conf" do
+    command "umount -c /etc/resolv.conf"
   end
 end