mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
fix temp mount
This commit is contained in:
parent
ab0964cbd0
commit
6346233fa7
1 changed files with 9 additions and 5 deletions
|
@ -766,8 +766,8 @@ if [ "$1" = "tempmount" ]; then
|
||||||
echo "error='temp mount failed'"
|
echo "error='temp mount failed'"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "isMounted=1"
|
isMounted=1
|
||||||
echo "isBTRFS=0"
|
isBTRFS=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
elif [ "${hddFormat}" = "btrfs" ]; then
|
elif [ "${hddFormat}" = "btrfs" ]; then
|
||||||
|
@ -788,8 +788,8 @@ if [ "$1" = "tempmount" ]; then
|
||||||
echo "error='temp mount failed'"
|
echo "error='temp mount failed'"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "isMounted=1"
|
isMounted=1
|
||||||
echo "isBTRFS=1"
|
isBTRFS=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
|
@ -797,6 +797,10 @@ if [ "$1" = "tempmount" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# outputting change state
|
||||||
|
echo "isMounted=${isMounted}"
|
||||||
|
echo "isBTRFS=${isBTRFS}"
|
||||||
|
|
||||||
# trigger linking
|
# trigger linking
|
||||||
doLinking=1
|
doLinking=1
|
||||||
|
|
||||||
|
@ -808,7 +812,7 @@ fi
|
||||||
|
|
||||||
if [ "$1" = "link" ] || [ ${doLinking} -eq 1 ]; then
|
if [ "$1" = "link" ] || [ ${doLinking} -eq 1 ]; then
|
||||||
|
|
||||||
if [ ${isMounted} -eq 0 ]; then
|
if [ ${isMounted} -eq 0 ] ; then
|
||||||
echo "error='no data drive mounted'"
|
echo "error='no data drive mounted'"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue