Created
August 24, 2015 16:53
-
-
Save pyther/fb8bc6d5edb6addd124a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- baseimg/overlayfs/overlayfs.py.orig 2015-08-24 12:24:00.067498108 -0400 | |
+++ baseimg/overlayfs/overlayfs.py 2015-08-24 12:39:10.807999806 -0400 | |
@@ -65,8 +65,9 @@ def should_touch(): | |
if not path.exists(mtab): | |
return False | |
with open(mtab, 'r') as f: | |
- line = f.readline() | |
- return line.startswith('overlay / overlay') | |
+ for line in f.readlines(): | |
+ if line.startswith('overlay / overlay'): | |
+ return True | |
return False | |
def prereposetup_hook(conduit): |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment