mirror of
https://github.com/Retropex/raspiblitz.git
synced 2025-05-13 03:30:49 +02:00
correct rootPartition and rootPartitionBytes with volume group
This commit is contained in:
parent
425442c248
commit
5209508584
@ -27,10 +27,11 @@ action=$1
|
|||||||
#########################
|
#########################
|
||||||
# STATUS
|
# STATUS
|
||||||
|
|
||||||
# gather data on sd card
|
# gather data on SDcard / OS drive
|
||||||
minimumSizeByte=16384000000
|
minimumSizeByte=16384000000
|
||||||
rootPartition=$(sudo mount | grep " / " | cut -d " " -f 1 | cut -d "/" -f 3)
|
rootPartitionLine=$(sudo mount | grep " / " | cut -d " " -f 1)
|
||||||
rootPartitionBytes=$(lsblk -b -o NAME,SIZE | grep "${rootPartition}" | tr -s ' ' | cut -d " " -f 2)
|
rootPartition=$(basename ${rootPartitionLine})
|
||||||
|
rootPartitionBytes=$(lsblk -b -o NAME,SIZE | grep "${rootPartition}" | awk '{print $2}')
|
||||||
|
|
||||||
# make conclusions
|
# make conclusions
|
||||||
needsExpansion=0
|
needsExpansion=0
|
||||||
|
Loading…
Reference in New Issue
Block a user