mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-26 19:47:05 +02:00
#1765 fix sd card extension on fresh setup
This commit is contained in:
@@ -31,11 +31,10 @@ echo "Setting the Name/Alias/Hostname .."
|
|||||||
sudo /home/admin/config.scripts/lnd.setname.sh ${hostname}
|
sudo /home/admin/config.scripts/lnd.setname.sh ${hostname}
|
||||||
|
|
||||||
# expanding the root of the sd card
|
# expanding the root of the sd card
|
||||||
|
if [ "${baseimage}" = "raspbian" ]; then
|
||||||
if [ "${baseImage}" = "raspbian" ]; then
|
|
||||||
sudo raspi-config --expand-rootfs
|
sudo raspi-config --expand-rootfs
|
||||||
sudo sed -i "s/^fsexpanded=.*/fsexpanded=1/g" /home/admin/raspiblitz.info
|
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 /usr/lib/armbian/armbian-resize-filesystem start
|
||||||
sudo sed -i "s/^fsexpanded=.*/fsexpanded=1/g" /home/admin/raspiblitz.info
|
sudo sed -i "s/^fsexpanded=.*/fsexpanded=1/g" /home/admin/raspiblitz.info
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user