summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnimesh Sahu <animeshsahu19@yahoo.com>2023-05-17 01:41:32 +0530
committerGitHub <noreply@github.com>2023-05-16 13:11:32 -0700
commit6287cc40b94e62e2a9d8d3b5d3936f37469e3104 (patch)
treee026e752b38a60dab5c5f4e39ee45a820dddc1a9
parent4ebf4d96c26c684af7fb04982a6924258c616696 (diff)
downloadchef-6287cc40b94e62e2a9d8d3b5d3936f37469e3104.tar.gz
Add efivarfs to list of non-existent mount devices (#13683)
Signed-off-by: Animeshz <animeshsahu19@yahoo.com>
-rw-r--r--cspell.json1
-rw-r--r--lib/chef/provider/mount/mount.rb4
2 files changed, 3 insertions, 2 deletions
diff --git a/cspell.json b/cspell.json
index 9e8b47308a..ce2e83937e 100644
--- a/cspell.json
+++ b/cspell.json
@@ -324,6 +324,7 @@
"eckey",
"ecparam",
"edir",
+ "efivarfs",
"egid",
"egrep",
"ELOOP",
diff --git a/lib/chef/provider/mount/mount.rb b/lib/chef/provider/mount/mount.rb
index 2021d6ece5..a0b69a1dcb 100644
--- a/lib/chef/provider/mount/mount.rb
+++ b/lib/chef/provider/mount/mount.rb
@@ -186,7 +186,7 @@ class Chef
def device_should_exist?
( @new_resource.device != "none" ) &&
( not network_device? ) &&
- ( not %w{ cgroup tmpfs fuse vboxsf zfs }.include? @new_resource.fstype )
+ ( not %w{ cgroup tmpfs fuse vboxsf zfs efivarfs }.include? @new_resource.fstype )
end
private
@@ -287,4 +287,4 @@ class Chef
end
end
end
-end \ No newline at end of file
+end