summaryrefslogtreecommitdiff
path: root/components/9990-misc-helpers.sh
diff options
context:
space:
mode:
Diffstat (limited to 'components/9990-misc-helpers.sh')
-rwxr-xr-xcomponents/9990-misc-helpers.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/components/9990-misc-helpers.sh b/components/9990-misc-helpers.sh
index 570a12a..c502d59 100755
--- a/components/9990-misc-helpers.sh
+++ b/components/9990-misc-helpers.sh
@@ -694,6 +694,11 @@ mount_persistence_media ()
device=${1}
probe=${2}
+ if [ ! -b "${device}" ]
+ then
+ return 1
+ fi
+
backing="/live/persistence/$(basename ${device})"
mkdir -p "${backing}"
@@ -1250,11 +1255,6 @@ get_custom_mounts ()
for device in ${devices}
do
- if [ ! -b "${device}" ]
- then
- continue
- fi
-
local device_name backing include_list
device_name="$(basename ${device})"
backing=$(mount_persistence_media ${device})