Difference between revisions of "Installing ArchLinux inside an Alpine chroot"
(tweak Arch package list)
m (Dubiousjim moved page ArchLinux install inside an Alpine chroot to Installing ArchLinux inside an Alpine chroot: Consistent page titles)
Revision as of 15:18, 20 January 2015
It's sometimes useful to have another Linux system installed inside a chroot on an Alpine system. This page explains how to install a recent version of ArchLinux (either x86 or x86_64) inside an existing Alpine system (assumed to have the same architecture).
Some useful links:
- What's the proper way to prepare chroot to recover a broken Linux installation?
Inside your Alpine system:
Then chroot into the newly-created Arch system. I use the following script to do this:
At least when setting the Arch system up, you'll want to disable Alpine's grsecurity prohibition against suid/sgid:
For more info, see:
Inside the Arch chroot, do the following. (The first step may take a long time, especially if you're connected to the system in question by ssh. See this link for more info, and tips about how to speed the process up.)
You can also install any other packages you want. I use:
Still inside the Arch chroot, assign a root password and create a non-root user:
Uncomment this line in /etc/sudoers, then save the file:
## Uncomment to allow members of group wheel to execute any command %wheel ALL=(ALL) ALL
Now you're done. You can switch to the non-root user with:
or hit+ to exit the chroot.