Much closer to a working version.
This commit is contained in:
parent
ff41ffabaf
commit
7c0c71ab2c
@ -119,7 +119,8 @@ done
|
||||
|
||||
# Url for the image to be downloaded.
|
||||
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"
|
||||
loopdev="$(losetup --find --show "${imageName}")"
|
||||
@ -150,10 +151,10 @@ echo -e "stormux\nstormux" | passwd "stormux"
|
||||
sudo su - stormux
|
||||
git clone https://aur.archlinux.org/yay.git
|
||||
cd yay
|
||||
makepkg -si
|
||||
makepkg -si --noconfirm
|
||||
cd ~
|
||||
rm -rf yay
|
||||
yay -S fenrir-git informant magic-wormhole
|
||||
yay -S --noconfirm fenrir-git informant magic-wormhole
|
||||
exit
|
||||
# Make sure informant is up to date with news
|
||||
informant read --all
|
||||
@ -165,7 +166,7 @@ echo stormux > /etc/hostname
|
||||
# Enable services
|
||||
systemctl enable cronie.service fenrirscreenreader.service
|
||||
# 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
|
||||
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user