-
Notifications
You must be signed in to change notification settings - Fork 327
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
Example on building Arch based image with packages from AUR? #2578
Comments
I can review a patch to add this somewhere in docs/ but I don't use the AUR myself so I can't help you with writing the example. |
What wound be a best approach to install aur packages, in chroot stage maybe? Basically one would need one of I am thinking of |
You could build the AUR packages and place them in a repository. mkosi could then access the packages like any other package repository (core, extra). |
I was expecting this to be automated :) |
I put together a gist of how I'm doing AUR + mkosi using Biggest pain points are the "no root with |
@michaelbeaumont Did you consider using other AUR helpers? Also it would be nice to have native AUR helper support, meaning some kind of glue from mkosi to some other AUR helper |
Basically not being able to run any AUR helpers as root and Fully agree on the AUR needing to be easier. Using Arch means using the AUR, even for other distros installing non-package manager managed software is a necessity. Special classing the repo's package manager and making anything else very difficult is not a great strategy for a tool that claims to be for OS images. At least with Arch, working with upstream packages and the AUR are very similar. But the question is really, is making the AUR easier to use something |
@DaanDeMeyer What can we do about all of this? I also don't see any real usability for mkosi with arch without sane AUR support. |
I am very happy with mkosi's arch support without ever having needed AUR packages. I tagged the issue with PRs welcome, feel free to submit a PR to document how to build AUR packages. I doubt we'll merge native support for a specific aur package manager at this point. |
issue is with |
|
Can you be a little more specific? |
I'm not really sure it requires supporting any package manager really. |
It can be run as root, just set EUID=123 to trick its root check. |
|
@michaelbeaumont maybe |
@michaelbeaumont https://github.com/NekkoDroid/NekkOS/tree/68f6864b4ba93cbde88452dfdf8b64d0bbbe03c9/mkosi.images/mkosi-packages I've written mine |
Indeed, that works, thanks. It would be possible to use |
@michaelbeaumont are you planning to update gist? |
Would be nice to have some example on how to build Arch based image that have packages from AUR (when host that builds image is also Arch linux and of same platform, in case it matters).
The text was updated successfully, but these errors were encountered: