2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

fstab fixup for hyphenated lvm vg names

This commit is contained in:
Jarrod Johnson 2024-03-26 10:31:29 -04:00
parent f3d0bd9079
commit f7a2e51f9c

View File

@ -103,7 +103,7 @@ def fixup(rootdir, vols):
uuid = uuid.strip()
entry[0] = 'UUID={}'.format(uuid)
elif entry[2] == 'swap':
entry[0] = '/dev/mapper/{}-swap'.format(vgname)
entry[0] = '/dev/mapper/{}-swap'.format(vgname.replace('-', '--'))
entry[0] = entry[0].ljust(42)
entry[1] = entry[1].ljust(16)
entry[3] = entry[3].ljust(28)