I normally install linux in linux with the use of a chroot environment before I ever boot a given install. I thought that I would try arch, but the base system fails to function in a chroot for installing packages, like a bootable linux kernel.
# pacman -Syu
Code:
:: Proceed with installation? [Y/n] Y
error: could not determine cachedir mount point /var/cache/pacman/pkg
error: failed to commit transaction (not enough free disk space)
Errors occurred, no packages were upgraded.
It seems that the mtab doesn't have the / entry, because it's a chroot. And because the host linux is debian based, it fails to install by other efforts due to the lack of a pacstrap or pacman in the deb repository. Futher complicated by the / of the chroot not being a direct mount point of a /dev/ location.
And the archlinux-bootstrap-2015.04.01-x86_64.tar.gz bundle doesn't have a bootable kernel in it, so I can't just slap it on a flash card and boot it either. I can kind of function in the chroot with adding users, changing passwords and basic admin setup steps, but if I can't install anything to the base system like a kernel, then the base system is kind of pointless for anything beyond a bash shell.
Steps to Date.
Code:
mount /dev/sdc3 /mnt/p3
mkdir /mnt/p3/install
cd /mnt/p3/install
wget -c http://mirror.jmu.edu/pub/archlinux/iso/2015.04.01/archlinux-bootstrap-2015.04.01-x86_64.tar.gz
tar -xzvpf archlinux-bootstrap-2015.04.01-x86_64.tar.gz
cd root.x86_64
cp /etc/resolv.conf ./etc/resolv.conf
nano ./etc/pacman.d/mirrorlist
mount -t proc none /mnt/p3/install/root.x86_64/proc
mount --rbind /dev /mnt/p3/install/root.x86_64/dev
export LANG=C; chroot /mnt/p3/install/root.x86_64 /bin/bash
Code:
pacman-key --init
pacman-key --populate archlinux
pacman -Syy
pacman -Syu
And then the previous mentioned error. There is no / in the mtab of the chroot. And there's no bootable kernel in the bootstrap tarball. So which came first, the chicken or the egg? Is the only way to install arch by running arch first?