Skip to content

Commit

Permalink
Use same device backing path as used in other places.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tails developers authored and daniel-baumann committed Apr 1, 2012
1 parent e2d2d40 commit 656155f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/live-helpers
Expand Up @@ -373,6 +373,7 @@ find_persistent_media ()
snapshots="${2}"
black_listed_devices="${3}"
white_listed_devices="${4}"
persistent_backing="${rootmnt}/live/persistent"

for dev in $(storage_devices "${black_listed_devices}" "${white_listed_devices}")
do
Expand Down Expand Up @@ -413,7 +414,7 @@ find_persistent_media ()
devfstype="$(get_fstype ${dev})"
overlay_on_dev=""
snapshot_on_dev=""
backing="/$(basename ${dev})-backing"
backing="${persistent_backing}/$(basename ${dev})"
mkdir -p "${backing}"
if is_supported_fs ${devfstype} && try_mount "${dev}" "${backing}" "rw" "${devfstype}"
then
Expand Down

0 comments on commit 656155f

Please sign in to comment.