fix xorriso -map to include target path for riscv64

The -map option requires two arguments: the source filesystem path and
the target path in the ISO. Without the "/" target, xorriso fails.
This only affects riscv64, which uses native xorriso mode rather than
mkisofs compatibility mode.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
michael.hudson@canonical.com 2026-02-10 14:36:16 +13:00
parent 45aa1e4550
commit 2c2f7d5e5c
No known key found for this signature in database
GPG Key ID: 80E627A0AB757E23

View File

@ -366,7 +366,7 @@ class ISOBuilder:
if volid:
cmd.extend(["-volid", volid])
cmd.extend(mkisofs_opts)
cmd.extend(["-map", self.iso_root])
cmd.extend(["-map", self.iso_root, "/"])
else:
# xorriso with "-as mkisofs" runs in mkisofs compatibility mode on
# other architectures. -r enables Rock Ridge extensions for Unix