Open ergpopler opened 4 years ago
Hi, the problem is the dependency is parsed incorrectly when the package providing libmagic is actually file.
Adding a simple correction into installer/arch/bootstrap
inside the while loop at line 121 such as [ "$package = "libmagic.so"] && package="file"
allowed the chroot to be (mostly) setup. It failed a bit later in the installation with something related to glibc locale-gen but I was able to manually finish the installation with something along the lines of
enter-chroot -u 0
pacman -S base
locale-gen
echo -e "LANG=en_US.UTF-8\nLC_COLLATE=C" > /etc/locale.conf
at this point you'd want to finish setting up your user account but make sure to specify 1000 because for some reason without it it'll try 1001 which isn't the default for the enter-chroot
script: useradd -mG users,wheel -u 1000 <username>
etc etc then setup /etc/sudoers
to allow you sudo (or doas in my case but used sudo in this example for simplicity.)
I've successfully got an Arch Linux ARM chroot on my Chromebook (that sadly has no custom firmware or linux support) in 2021!
Side notes:
enter-chroot
it might ask you to re-run the setup script, press whichever key it is to delete/ignore it (or watch it fail again.)sudo mount -o remount,exec /home/chronos/user
(or whatever mntpoint you're running this script from)
Cannot find package libmagic.so...
command used:
sudo sh -e installer/main.sh -r arch -t core -m 'http://mirror.cedille.club/archlinux/$repo/os/$arch' -p /media/removable/SD\ Card/