From bd2288ccb79b60fc4b12fbdc6975453c976091cc Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 15 Mar 2024 12:29:37 -0400 Subject: [PATCH] Ensure preservation of " if rename fails If ent would swallow a ", make sure to put it back. --- .../el9-diskless/profiles/default/scripts/image2disk.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/confluent_osdeploy/el9-diskless/profiles/default/scripts/image2disk.py b/confluent_osdeploy/el9-diskless/profiles/default/scripts/image2disk.py index 83cffc6b..79d0008e 100644 --- a/confluent_osdeploy/el9-diskless/profiles/default/scripts/image2disk.py +++ b/confluent_osdeploy/el9-diskless/profiles/default/scripts/image2disk.py @@ -206,6 +206,8 @@ def fixup(rootdir, vols): ent = convert_lv(ent) if ent: newline.append(ent) + elif '""' in ent: + newline.append('""') else: newline.append(ent) defgrubout.write(' '.join(newline) + '\n')