summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2012-02-11 21:30:53 +0100
committerDaniel Baumann <daniel@debian.org>2012-04-01 22:13:36 +0200
commit656155fcea1cc331306ec32c246209e0098efdc7 (patch)
tree86ff17be785ddcfde5f55908ae433e3329de7bc5 /scripts
parente2d2d40b67bdbbef25f1b53f4fbc2eedc72f12cd (diff)
downloadlive-boot-656155fcea1cc331306ec32c246209e0098efdc7.tar.gz
live-boot-656155fcea1cc331306ec32c246209e0098efdc7.zip
Use same device backing path as used in other places.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/live-helpers3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/live-helpers b/scripts/live-helpers
index f1ebe86..43485ed 100644
--- a/scripts/live-helpers
+++ b/scripts/live-helpers
@@ -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
@@ -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