From f7a2e51f9c284ab9c42d7c28b62b76df4ed0e711 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 26 Mar 2024 10:31:29 -0400 Subject: [PATCH] fstab fixup for hyphenated lvm vg names --- .../el9-diskless/profiles/default/scripts/image2disk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_osdeploy/el9-diskless/profiles/default/scripts/image2disk.py b/confluent_osdeploy/el9-diskless/profiles/default/scripts/image2disk.py index 425e5177..6a924964 100644 --- a/confluent_osdeploy/el9-diskless/profiles/default/scripts/image2disk.py +++ b/confluent_osdeploy/el9-diskless/profiles/default/scripts/image2disk.py @@ -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)