diff --git a/build/build-stormux.sh b/build/build-stormux.sh index 98874aa..b4aac96 100755 --- a/build/build-stormux.sh +++ b/build/build-stormux.sh @@ -117,7 +117,7 @@ mount ${loopdev}p2 /mnt mkdir /mnt/boot mount ${loopdev}p1 /mnt/boot wget "${url[$imageVersion]}" -O- | bsdtar -xpf - -C /mnt -arch-chroot /mnt << "EOF" +arch-chroot /mnt << EOF # set up pacman pacman-key --init pacman-key --populate archlinuxarm @@ -136,13 +136,17 @@ cd yay makepkg -si cd ~ rm -rf yay -yay -S fenrir-git magic-wormhole +yay -S fenrir-git informant magic-wormhole exit +# Make sure informant is up to date with news +informant read --all # Configure sudo for group wheel, remove nopasswd for the stormux user sed '/stormux/d' /etc/sudoers.d/wheel sed 's/^# %wheel ALL=(ALL) ALL$/%wheel ALL=(ALL) ALL/' /etc/sudoers.d/wheel # 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 EOF umount -R /mnt partx -d ${loopdev}