diff options
Diffstat (limited to 'lib/chef/provider/mount/linux.rb')
-rw-r--r-- | lib/chef/provider/mount/linux.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/provider/mount/linux.rb b/lib/chef/provider/mount/linux.rb index 57e0f8c324..0213f6a1e0 100644 --- a/lib/chef/provider/mount/linux.rb +++ b/lib/chef/provider/mount/linux.rb @@ -80,6 +80,8 @@ class Chef end @current_resource.mounted(mounted) end + + # should actually check if the filesystem is mounted and new resource have any difference (not just return current_resource) and return true/false def remount_require? remount_require = true real_mount_point = shell_out("findmnt --kernel #{@new_resource.device}| tail -1 | awk '{print$4}'").stdout.split(",") |