mediocregopher / chroagh

Yet another fork of chroagh which will work for a few months then die
BSD 3-Clause "New" or "Revised" License
13 stars 1 forks source link

installation fails #11

Open ergpopler opened 4 years ago

ergpopler commented 4 years ago

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/

unresolvedsymbol commented 3 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: