From 10ef1cae8e24e672a8c03085fb592f424886517f Mon Sep 17 00:00:00 2001 From: Akshay Karle Date: Wed, 18 Nov 2015 22:49:54 -0300 Subject: [PATCH] use enumerator instead of slurping it --- lib/lxc/start_ephemeral.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lxc/start_ephemeral.rb b/lib/lxc/start_ephemeral.rb index e7d66ce..e531236 100644 --- a/lib/lxc/start_ephemeral.rb +++ b/lib/lxc/start_ephemeral.rb @@ -41,7 +41,7 @@ module LXC private def new_overlay? - @new_overlay ||= File.readlines('/proc/filesystems').include?("nodev\toverlay\n") + @new_overlay ||= File.open('/proc/filesystems').grep(/nodev\s+overlay/).any? end def random_mac