#1765 fix sd card extension on fresh setup

This commit is contained in:
rootzoll 2020-11-17 12:53:07 +01:00
parent ea81de7d4d
commit 7e4de99c12

View File

@ -31,11 +31,10 @@ echo "Setting the Name/Alias/Hostname .."
sudo /home/admin/config.scripts/lnd.setname.sh ${hostname}
# expanding the root of the sd card
if [ "${baseImage}" = "raspbian" ]; then
if [ "${baseimage}" = "raspbian" ]; then
sudo raspi-config --expand-rootfs
sudo sed -i "s/^fsexpanded=.*/fsexpanded=1/g" /home/admin/raspiblitz.info
elif [ "${baseImage}" = "armbian" ]; then
elif [ "${baseimage}" = "armbian" ]; then
sudo /usr/lib/armbian/armbian-resize-filesystem start
sudo sed -i "s/^fsexpanded=.*/fsexpanded=1/g" /home/admin/raspiblitz.info
fi