mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 06:48:00 +01:00
just expand FS once when swap is created
This commit is contained in:
parent
cfd38f453b
commit
0545c96811
1 changed files with 7 additions and 6 deletions
|
@ -4,7 +4,7 @@ echo ""
|
|||
# add bonus scripts
|
||||
./91addBonus.sh
|
||||
|
||||
###### SWAP
|
||||
###### SWAP & FS
|
||||
echo "*** SWAP file ***"
|
||||
swapExists=$(swapon -s | grep -c /mnt/hdd/swapfile)
|
||||
if [ ${swapExists} -eq 1 ]; then
|
||||
|
@ -20,6 +20,12 @@ else
|
|||
sudo dphys-swapfile setup
|
||||
sudo chmod 0600 /mnt/hdd/swapfile
|
||||
sudo dphys-swapfile swapon
|
||||
|
||||
# expand FS of SD
|
||||
echo "*** Expand RootFS ***"
|
||||
sudo raspi-config --expand-rootfs
|
||||
echo ""
|
||||
|
||||
fi
|
||||
swapExists=$(swapon -s | grep -c /mnt/hdd/swapfile)
|
||||
if [ ${swapExists} -eq 1 ]; then
|
||||
|
@ -32,11 +38,6 @@ else
|
|||
sleep 60
|
||||
fi
|
||||
|
||||
# expand FS of SD
|
||||
echo "*** Expand RootFS ***"
|
||||
sudo raspi-config --expand-rootfs
|
||||
echo ""
|
||||
|
||||
# mark setup is done
|
||||
echo "90" > /home/admin/.setup
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue