Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure /etc/installurl #39

Closed
dentarg opened this issue May 21, 2023 · 1 comment · Fixed by #41
Closed

Configure /etc/installurl #39

dentarg opened this issue May 21, 2023 · 1 comment · Fixed by #41

Comments

@dentarg
Copy link
Contributor

dentarg commented May 21, 2023

I think it would be good to configure the box with https://ftp.lysator.liu.se/pub/OpenBSD as the installurl(5) as the default one removes packages for older versions:

openbsd71$ sudo pkg_add -z "python%3"
https://cdn.openbsd.org/pub/OpenBSD/7.1/packages/amd64/: no such dir
Can't find python%3
openbsd71$ cat /etc/installurl
https://cdn.openbsd.org/pub/OpenBSD
@dentarg
Copy link
Contributor Author

dentarg commented Nov 12, 2023

It is possible to configure at box build time with the mirror variable:

"variables": {
"ftp_proxy": "{{env `ftp_proxy`}}",
"http_proxy": "{{env `http_proxy`}}",
"https_proxy": "{{env `https_proxy`}}",
"mirror": "https://fastly.cdn.openbsd.org",
"boot_wait": "30s",
"major_version": "7",
"minor_version": "3"
},

https://developer.hashicorp.com/packer/guides/hcl/variables#command-line-flags

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 a pull request may close this issue.

1 participant