mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-02 20:37:51 +02:00
#1427 refresh lable for lsblk
This commit is contained in:
@@ -667,6 +667,7 @@ if [ "$1" = "format" ]; then
|
|||||||
>&2 echo "# waiting until formatted drives gets available"
|
>&2 echo "# waiting until formatted drives gets available"
|
||||||
sleep 2
|
sleep 2
|
||||||
sync
|
sync
|
||||||
|
sudo parted -l
|
||||||
loopdone=$(lsblk -o NAME,LABEL | grep -c BLITZDATA)
|
loopdone=$(lsblk -o NAME,LABEL | grep -c BLITZDATA)
|
||||||
loopcount=$(($loopcount +1))
|
loopcount=$(($loopcount +1))
|
||||||
if [ ${loopcount} -gt 60 ]; then
|
if [ ${loopcount} -gt 60 ]; then
|
||||||
@@ -707,6 +708,7 @@ if [ "$1" = "format" ]; then
|
|||||||
>&2 echo "# waiting until formatted drives gets available"
|
>&2 echo "# waiting until formatted drives gets available"
|
||||||
sleep 2
|
sleep 2
|
||||||
sync
|
sync
|
||||||
|
sudo parted -l
|
||||||
loopdone=$(lsblk -o NAME,LABEL | grep -c BLITZSTORAGE)
|
loopdone=$(lsblk -o NAME,LABEL | grep -c BLITZSTORAGE)
|
||||||
loopcount=$(($loopcount +1))
|
loopcount=$(($loopcount +1))
|
||||||
if [ ${loopcount} -gt 60 ]; then
|
if [ ${loopcount} -gt 60 ]; then
|
||||||
@@ -746,6 +748,7 @@ if [ "$1" = "format" ]; then
|
|||||||
>&2 echo "# waiting until formatted drives gets available"
|
>&2 echo "# waiting until formatted drives gets available"
|
||||||
sleep 2
|
sleep 2
|
||||||
sync
|
sync
|
||||||
|
sudo parted -l
|
||||||
loopdone=$(lsblk -o NAME,LABEL | grep -c BLITZTEMP)
|
loopdone=$(lsblk -o NAME,LABEL | grep -c BLITZTEMP)
|
||||||
loopcount=$(($loopcount +1))
|
loopcount=$(($loopcount +1))
|
||||||
if [ ${loopcount} -gt 60 ]; then
|
if [ ${loopcount} -gt 60 ]; then
|
||||||
|
Reference in New Issue
Block a user