summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()