run add_riscv_gpt on riscv64

This commit is contained in:
michael.hudson@canonical.com 2026-02-04 14:54:56 +13:00
parent c1edc22c24
commit 45aa1e4550
No known key found for this signature in database
GPG Key ID: 80E627A0AB757E23

View File

@ -380,3 +380,7 @@ class ISOBuilder:
cmd.extend(mkisofs_opts + [self.iso_root, "-o", dest])
with self.logger.logged("running xorriso"):
self.logger.run(cmd, cwd=self.workdir, check=True, limit_length=False)
if self.arch == "riscv64":
debian_cd_dir = self.workdir.joinpath("debian-cd")
add_riscv_gpt = debian_cd_dir.joinpath("tools/add_riscv_gpt")
self.logger.run([add_riscv_gpt, dest], cwd=self.workdir)