this should fix some issues with loop mounts

This commit is contained in:
brent s. 2021-01-19 01:14:33 -05:00
parent d8686ca943
commit 67338238af
Signed by: bts
GPG Key ID: 8C004C2F93481F6B

View File

@ -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()