From 6c1c9d9efd88cb7cda59fd0aee57dd5f8f490283 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Tue, 22 Nov 2022 12:53:11 +0100 Subject: [PATCH] createiso: Create Joliet tree with xorriso MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This structure is important for isoinfo -J, which is in turn called by virt-install. This can be tested by using a bootable ISO by modifying it with a dummy additional file and preserving boot records: $ xorriso -indev netinst.iso -outdev test.iso -boot_image any replay -map setup.py setup.py -end ... $ isoinfo -J -i test.iso isoinfo: Unable to find Joliet SVD $ rm test.iso $ xorriso -indev netinst.iso -outdev test.iso -joliet on -boot_image any replay -map setup.py setup.py -end ... $ isoinfo -J -i test.iso $ Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2144105 Signed-off-by: Lubomír Sedlář (cherry picked from commit 12e3a46390cad17ad6d912da85ec9eb1d516b059) --- pungi/createiso.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pungi/createiso.py b/pungi/createiso.py index 4d80678c..c857c5fe 100644 --- a/pungi/createiso.py +++ b/pungi/createiso.py @@ -125,6 +125,8 @@ def write_xorriso_commands(opts): emit(f, "-outdev %s" % os.path.join(opts.output_dir, opts.iso_name)) emit(f, "-boot_image any replay") emit(f, "-volid %s" % opts.volid) + # isoinfo -J uses the Joliet tree, and it's used by virt-install + emit(f, "-joliet on") with open(opts.graft_points) as gp: for line in gp: