summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrent s <bts@square-r00t.net>2021-01-19 01:14:33 -0500
committerbrent s <bts@square-r00t.net>2021-01-19 01:14:33 -0500
commit67338238afc71c50394ce20d3a024e348c802b9d (patch)
tree7775b38a2b83c612d54ceb7f4aab33fb0aec46c8
parentd8686ca9432142fc644147d6b390eeab240819b7 (diff)
downloadOpTools-master.tar.xz
this should fix some issues with loop mountsHEADmaster
-rwxr-xr-xsys/BootSync/bootsync.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/BootSync/bootsync.py b/sys/BootSync/bootsync.py
index e01b197..6c2f1c2 100755
--- a/sys/BootSync/bootsync.py
+++ b/sys/BootSync/bootsync.py
@@ -236,7 +236,7 @@ class BootSync(object):
line = re.sub(r'(?<!\=UUID\=){0}'.format(self.dummy_uuid),
self.blkids[disk],
line)
- line = re.sub('/boot', '', line)
+ line = re.sub('(^\s*|\s+)/boot', '', line)
f.write('{0}\n'.format(line))
return()