Skip to content

Allow --qemu and file:// --mirrors to be used together#527

Merged
stikonas merged 1 commit intofosslinux:masterfrom
alganet:mirrors
Jun 21, 2025
Merged

Allow --qemu and file:// --mirrors to be used together#527
stikonas merged 1 commit intofosslinux:masterfrom
alganet:mirrors

Conversation

@alganet
Copy link
Copy Markdown
Contributor

@alganet alganet commented Jun 12, 2025

When using file:// mirrors, rootfs.py will spawn a local HTTP server at 127.0.0.1.

In combination with --qemu, this poses a problem: downloads on the host machine will work, but downloads on the guest machine will not reach the local server.

This commit introduces a change to rewrite the address to 10.0.2.2 inside the guest, only when QEMU=True is set in the configuration, allowing this combination to build past the get_network improvement step.

When using file:// mirrors, rootfs.py will spawn a local HTTP
server at 127.0.0.1.

In combination with --qemu, this poses a problem: downloads
on the host machine will work, but downloads on the guest
machine will not reach the local server.

This commit introduces a change to rewrite the address to
10.0.2.2 inside the guest, only when QEMU=True is set in
the configuration, allowing this combination to build
past the get_network improvement step.
@alganet alganet marked this pull request as ready for review June 12, 2025 01:30
@stikonas stikonas requested a review from fosslinux June 19, 2025 20:47
@stikonas stikonas merged commit a7397d5 into fosslinux:master Jun 21, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants