You are not logged in.
I have a functional Ubuntu install on a laptop and I wish to install Arch to a second partition FROM WITHIN the Ubuntu environment. I am confused as to what how to use the arch bootstrap image following this wiki page.
I have the target partition mounted to /mnt and the goal is to use pacstrap to install Arch to /mnt but I seem to be missing how to do it. Am I supposed to chroot into the extracted archive and then run pacstrap from within that chroot?
What I did FROM WITHIN the Ubuntu environment:
# cd /
# curl -O http://mirrors.kernel.org/archlinux/iso/2014.02.01/archlinux-bootstrap-2014.02.01-x86_64.tar.gz
# tar xf archlinux-bootstrap-2014.02.01-x86_64.tar.gz
<< selected a mirror from within /root.x86_64/etc/pacman.d/mirrorlist >>
# mount -o discard,noatime /dev/sda4 /root.x86_64/mnt
# /root.x86_64/bin/arch-chroot /root.x86_64/
So now I am chrooted into the image but am confused. How exactly am I to use /root.x86_64/bin/pacstrap to install to /root.x86_64/mnt ?
sh-4.2# pacstrap -i /mnt base
==> ERROR: /mnt is not a mountpoint!
If I attempt to mount /dev/sda4 FROM WITHIN the arch-chroot and then run pacstrap, it refuses to run:
sh-4.2# mount /dev/sda4 /mnt
sh-4.2# pacstrap -i /mnt base
==> Creating install root at /mnt
mount: mount point /mnt/dev/shm is a symbolic link to nowhere
==> ERROR: failed to setup API filesystems in new root
What am I missing?
EDIT: Solved... mkdir /run/shm needs to be run from within the chroot of the image. I will edit the wiki page to make this more proximal to the damn writeup rather than on the bottom of the page.
Last edited by graysky (2014-02-19 21:17:49)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline