Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#65679 - [devtools] arch-nspawn expects file:// repo paths configured in the container exist on the host
Attached to Project:
Arch Linux
Opened by Yu, Li Yu (afg) - Monday, 02 March 2020, 09:03 GMT
Last edited by Eli Schwartz (eschwartz) - Monday, 02 March 2020, 13:37 GMT
Opened by Yu, Li Yu (afg) - Monday, 02 March 2020, 09:03 GMT
Last edited by Eli Schwartz (eschwartz) - Monday, 02 March 2020, 13:37 GMT
|
DetailsIf I configure a local repository in the container `Server = file:///b`.
Then try `arch-nspawn /path/to/container`, it would expect that `/b` exist on the host. Failed to stat /b: No such file or directory arch-nspawn inserts `--bind=/b` to systemd-nspawn's arguments, probably since [1]. It seems that the issue mentioned in the commit ( makechrootpkg (which wraps arch-nspawn) also provides `-d` and `-D` for additional bind mounts. [1] https://git.archlinux.org/devtools.git/commit/?id=69112171e5de910331e46cf3f848866550125024 --- My use case is: I have local file:// repositories in the host somewhere like /home/user/custompkgs and configured as file:///custompkgs in the container. The change mentioned above required the repo have the same paths. I used --bind-ro=/home/user/custompkgs:/custompkgs or -D /home/user/custompkgs:/custompkgs in arch-nspawn and makechrootpkg respectively. |
This task depends upon
You can just use file:///home/user/custompkgs inside the chroot as well.
https://git.archlinux.org/kde-build.git/commit/?id=cda04698f4064cb87d427ccb3bdf954f127c65f7
Or:
https://github.com/anatol/quarry/commit/1505a0e4d7d924eb51509e5345861b6d6c3856ca