[WIP] chroot-rootfs: Add section.#300
Conversation
|
We do have xtool's |
|
I'd mention you should create and populate the directory as root, otherwise permissions tend to get weird. And I'm not entirely sure how we could fit |
|
In order to run graphical applications (imagine a steam chroot on a host musl system) one must also mount |
|
how about extending it to be more generic regarding target architecture? |
I don't think this is true if you're not building a bootable system. |
|
Just to be clear, @Duncaen's comment that led me to create this section was:
There's a good chance i've misinterpreted @Duncaen's comment, but i assumed what was meant was a page about setting up a chroot on an existing Void installation (e.g. a glibc chroot on a musl system, currently in the Handbook here). Installations via a chroot will be covered by #177 (which is almost complete, and which i feel will be a crucial addition to the Handbook), and then by further work leveraging #177 to address #85. @ericonr: i wasn't aware of |
0b88857 to
efd4cc3
Compare
|
To what extent should the handbook document what to do with a chroot? glibc compatibility on musl definitely makes sense (apart from already being in the handbook) because very few distributions support musl. Other uses might include running x86 binaries on x86_64 distribution (maybe this should go in the multilib page?) and creating jails for non-trusted users (if this is still good advice with docker and lxc around?) eta: Maybe also include a warning that you need to run xbps inside the chroot to keep those packages updated, independently of the host? |
|
@flexibeast master of xtools has a reference to @st3r4g you'd need to bind-mount /tmp for X11 to work, right? In that case, |
|
the wiki said to install |
|
@st3r4g if |
|
Yes, I'm currently using a script that binds mount |
|
I'm not sure what I'd prefer to see here, and also don't know what's safest/more correct. Thanks for testing :p |
|
Referring to
|
|
|
@ericonr: Ah, thanks, i hadn't noticed the |
efd4cc3 to
5d198bc
Compare
|
To help keep track of what needs to be done in relation to this section, a list:
|
|
I think we should leave I believe installing base-system is enough. I have a glibc chroot on my musl RPi. If you need graphics support or something, then you can install |
|
Blocked on #413 and leahneukirchen/xtools#187. |
* Move relevant content from musl.md. * Refer to this section from musl.md.
5d198bc to
5e21cbc
Compare
|
@ericonr: Would you be interested in taking over this PR? |
|
I can try! |
|
Thanks! |
| @@ -0,0 +1,26 @@ | |||
| # Creating a chroot rootfs | |||
|
|
|||
| As root, create a directory that will contain the chroot, and install a base | |||
There was a problem hiding this comment.
it is not necessary that the chroot dir is owned by root.
$ XBPS_ARCH=x86_64-musl xbps-install -MS --rootdir=/tmp/rootfs.void.x86_64-musl --repository=https://alpha.de.repo.voidlinux.org/current/musl base-voidstrap
$ proot -R /tmp/rootfs.void.x86_64-musl/
- based on the section of installation/musl - remove proot - add xchroot, xbps-uchroot, xbps-uunshare, and bwrap supercedes: - closes void-linux#300 - closes void-linux#610
- based on the section of installation/musl - remove proot - add xchroot, xbps-uchroot, xbps-uunshare, and bwrap supercedes: - closes void-linux#300 - closes void-linux#610
- based on the section of installation/musl - remove proot - add xchroot, xbps-uchroot, xbps-uunshare, and bwrap supercedes: - closes void-linux#300 - closes void-linux#610
- based on the section of installation/musl - remove proot - add xchroot, xbps-uchroot, xbps-uunshare, and bwrap supercedes: - closes void-linux#300 - closes void-linux#610
- based on the section of installation/musl - remove proot - add xchroot, xbps-uchroot, xbps-uunshare, and bwrap - mention OCI containers supercedes: - closes void-linux#300 - closes void-linux#610
- based on the section of installation/musl - remove proot - add xchroot, xbps-uchroot, xbps-uunshare, and bwrap - mention OCI containers supercedes: - closes void-linux#300 - closes void-linux#610
- based on the section of installation/musl - remove proot - add xchroot, xbps-uchroot, xbps-uunshare, and bwrap - mention OCI containers supercedes: - closes void-linux#300 - closes void-linux#610
- based on the section of installation/musl - remove proot - add xchroot, xbps-uchroot, xbps-uunshare, and bwrap - mention OCI containers supercedes: - closes void-linux#300 - closes void-linux#610
- based on the section of installation/musl - remove proot - add xchroot, xbps-uchroot, xbps-uunshare, and bwrap - mention OCI containers supercedes: - closes void-linux#300 - closes void-linux#610
- based on the section of installation/musl - remove proot - add xchroot and bwrap - mention OCI containers supercedes: - closes void-linux#300 - closes void-linux#610
- based on the section of installation/musl - remove proot - add xchroot and bwrap - mention flatpak and OCI containers supercedes: - closes void-linux#300 - closes void-linux#610
- based on the section of installation/musl - remove proot - add xchroot and bwrap - mention flatpak and OCI containers supercedes: - closes void-linux#300 - closes void-linux#610
- based on the section of installation/musl - remove proot - add xchroot and bwrap - mention flatpak and OCI containers supercedes: - closes void-linux#300 - closes void-linux#610
- based on the section of installation/musl - remove proot - add xchroot and bwrap - mention flatpak and OCI containers supercedes: - closes void-linux#300 - closes void-linux#610
- based on the section of installation/musl - remove proot - add xchroot and bwrap - mention flatpak and OCI containers supercedes: - closes void-linux#300 - closes void-linux#610
Further to @Duncaen's comment on #267.