Much closer to a working version.

This commit is contained in:
Storm Dragon 2020-12-11 19:59:57 -05:00
parent ff41ffabaf
commit 7c0c71ab2c

View File

@ -119,7 +119,8 @@ done
# Url for the image to be downloaded. # Url for the image to be downloaded.
url[3]="http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz" url[3]="http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz"
url[4]="http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz" #url[4]="http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz"
url[4]="http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-4-latest.tar.gz"
fallocate -l $imageSize "$imageName" fallocate -l $imageSize "$imageName"
loopdev="$(losetup --find --show "${imageName}")" loopdev="$(losetup --find --show "${imageName}")"
@ -150,10 +151,10 @@ echo -e "stormux\nstormux" | passwd "stormux"
sudo su - stormux sudo su - stormux
git clone https://aur.archlinux.org/yay.git git clone https://aur.archlinux.org/yay.git
cd yay cd yay
makepkg -si makepkg -si --noconfirm
cd ~ cd ~
rm -rf yay rm -rf yay
yay -S fenrir-git informant magic-wormhole yay -S --noconfirm fenrir-git informant magic-wormhole
exit exit
# Make sure informant is up to date with news # Make sure informant is up to date with news
informant read --all informant read --all
@ -165,7 +166,7 @@ echo stormux > /etc/hostname
# Enable services # Enable services
systemctl enable cronie.service fenrirscreenreader.service systemctl enable cronie.service fenrirscreenreader.service
# Update fstab for Raspberry Pi 4. # Update fstab for Raspberry Pi 4.
[[ $imageVersion -eq 4 ]] && sed -i 's/mmcblk0/mmcblk1/g' /etc/fstab #[[ $imageVersion -eq 4 ]] && sed -i 's/mmcblk0/mmcblk1/g' /etc/fstab
EOF EOF
exit 0 exit 0