we need to perform an exact match as we are comparing overlay with overlayfs

This commit is contained in:
Akshay Karle 2015-11-19 14:24:26 -03:00
parent 10ef1cae8e
commit 00d27d6ec4

View file

@ -41,7 +41,7 @@ module LXC
private
def new_overlay?
@new_overlay ||= File.open('/proc/filesystems').grep(/nodev\s+overlay/).any?
@new_overlay ||= File.open('/proc/filesystems').grep(/^nodev\s+overlay$/).any?
end
def random_mac