From 65fe9859676aedab0fdc5b8bb37bc372098b3d3f Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Mon, 7 Jan 2013 12:55:19 +0000 Subject: [PATCH] make mounts.rb a little smarter Signed-off-by: Stephen Gran --- modules/debian-org/lib/facter/mounts.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/debian-org/lib/facter/mounts.rb b/modules/debian-org/lib/facter/mounts.rb index 2a075ccba..4cdf969a2 100644 --- a/modules/debian-org/lib/facter/mounts.rb +++ b/modules/debian-org/lib/facter/mounts.rb @@ -5,7 +5,7 @@ begin ignorefs = ["NFS", "nfs", "nfs4", "nfsd", "afs", "binfmt_misc", "proc", "smbfs", "autofs", "iso9660", "ncpfs", "coda", "devpts", "ftpfs", "devfs", "mfs", "shfs", "sysfs", "cifs", "lustre_lite", "tmpfs", "usbfs", "udf", - "fusectl", "fuse.snapshotfs", "rpc_pipefs"] + "fusectl", "fuse.snapshotfs", "rpc_pipefs", "devtmpfs"] mountpoints = [] FileSystem.mounts.each do |m| if ((not ignorefs.include?(m.fstype)) && (m.options !~ /bind/)) @@ -13,7 +13,7 @@ begin end end setcode do - mountpoints.join(',') + mountpoints.uniq.sort.join(',') end end -- 2.20.1