Skip to content

Instantly share code, notes, and snippets.

@pyther
Created August 24, 2015 16:53
Show Gist options
  • Save pyther/fb8bc6d5edb6addd124a to your computer and use it in GitHub Desktop.
Save pyther/fb8bc6d5edb6addd124a to your computer and use it in GitHub Desktop.
--- 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