From ee530527cb65ef25216903dd6e0082d768e33a3a Mon Sep 17 00:00:00 2001 From: Danny Perez Date: Wed, 17 Jun 2015 15:31:59 -0400 Subject: [PATCH] Fixed bug where mount options weren't used when mounting, and made it align with the README documentation --- recipes/volumes.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/recipes/volumes.rb b/recipes/volumes.rb index f990655..8c0b222 100644 --- a/recipes/volumes.rb +++ b/recipes/volumes.rb @@ -52,10 +52,18 @@ mode 0755 end + case node[:platform] + when 'amazon' + default_mount_options = 'noatime' + else + default_mount_options = 'noatime,nobootwait' + end + mount_options = options[:mount_options] || default_mount_options + mount mount_point do fstype options[:fstype] device device - options 'noatime,nobootwait' + options mount_options action [:mount, :enable] end