Skip to content

Conversation

@vtri950
Copy link

@vtri950 vtri950 commented Dec 10, 2025

When building the aarch64 ISO on Fedora, the build failed with:
xorriso : FAILURE : -as genisofs: Unrecognized option '-eltorito-platform=efi'

On Fedora, the mkisofs command is actually implemented by xorriso using -as genisofs emulation mode. However, newer versions of xorriso don't support the -eltorito-platform=efi flag when emulating genisofs.

The Fix

I replaced the mkisofs command in post-image.sh with native xorriso commands.

fixes #22056

@k8s-ci-robot k8s-ci-robot requested a review from nirs December 10, 2025 14:16
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: vtri950
Once this PR has been reviewed and has the lgtm label, please assign comradeprogrammer for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Dec 10, 2025
@k8s-ci-robot k8s-ci-robot requested a review from prezha December 10, 2025 14:16
@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Dec 10, 2025
@k8s-ci-robot
Copy link
Contributor

Hi @vtri950. Thanks for your PR.

I'm waiting for a github.com member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@minikube-bot
Copy link
Collaborator

Can one of the admins verify this patch?

cp efi-part/EFI/BOOT/* root/EFI/BOOT/
cp efiboot.img root/EFI/BOOT/

mkisofs \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this would break non fedora ones...how about add a logic that if it is Fedora then it should use a different command ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this would break non fedora ones

AI promised that this works also on Ubuntu 22.04.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vtri950 You need replace genisoimage with xorriso in the Ubuntu instructions:
https://minikube.sigs.k8s.io/docs/contrib/building/iso/

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change belongs to this PR.

Please also rebase this PR for testing. The current PR cannot be tested since master was broken when you created the PR.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@nirs
Copy link
Contributor

nirs commented Dec 10, 2025

/ok-to-build-iso

@minikube-bot
Copy link
Collaborator

Hi @vtri950, building a new ISO failed for Commit 70594ab
See the logs at:
https://storage.cloud.google.com/minikube-builds/logs/22097/70594ab/iso_build.txt

@nirs
Copy link
Contributor

nirs commented Dec 12, 2025

@vtri950 please rebase this PR on current master for testing, and add the doc change from https://github.com/kubernetes/minikube/pull/22098/changes#diff-e20bcb0b65804fb7c7a6237fc16522f4d6b77514a62f2b6031a0fc2d59b501e8R62

@afbjorklund
Copy link
Collaborator

afbjorklund commented Dec 13, 2025

Buildroot has support for iso9660 filesystem now, so you might not need the host scripts anymore.

https://github.com/buildroot/buildroot/tree/master/fs/iso9660

And yes it uses xorriso, but it is built according to specifications.

@vtri950
Copy link
Author

vtri950 commented Dec 15, 2025

@vtri950 please rebase this PR on current master for testing, and add the doc change from

done

@vtri950
Copy link
Author

vtri950 commented Dec 31, 2025

@nirs is this pr good to merge or is there anything else that needs fixing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iso: Support build on Fedora - aarch64

6 participants