remove the build packages from the finished image to save space.

This commit is contained in:
Storm Dragon 2022-02-19 23:04:14 -05:00
parent a3b9e8c752
commit 6bf31d0da8
1 changed files with 2 additions and 0 deletions

View File

@ -174,6 +174,7 @@ makepkg -si --noconfirm
cd ~
rm -rf yay
yay -S --noconfirm fake-hwclock-git fenrir-git growpartfs log2ram
rm -rf .cache/yay
exit
# Configure sudo for group wheel, remove nopasswd for the stormux user
echo '%wheel ALL=(ALL) ALL' > /etc/sudoers.d/wheel
@ -181,6 +182,7 @@ echo '%wheel ALL=(ALL) ALL' > /etc/sudoers.d/wheel
echo stormux > /etc/hostname
# Enable services
systemctl enable brltty.path cronie.service fake-hwclock.service fenrirscreenreader.service log2ram.service NetworkManager.service ntpd.service
# Update fstab for Raspberry Pi 4.
#[[ $imageVersion -eq 4 ]] && sed -i 's/mmcblk0/mmcblk1/g' /etc/fstab
EOF