From 78c2bc5d16c73448b9c160850c386ffcd1ef2971 Mon Sep 17 00:00:00 2001 From: Tails developers Date: Mon, 9 Apr 2012 16:07:35 +0200 Subject: [PATCH] Do not probe the device mounted on /live/image for persistence. --- scripts/live-helpers | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/live-helpers b/scripts/live-helpers index ee59247..b90637a 100644 --- a/scripts/live-helpers +++ b/scripts/live-helpers @@ -973,7 +973,9 @@ find_persistence_media () local white_listed_devices="${3}" local ret="" - for dev in $(storage_devices "" "${white_listed_devices}") + local black_listed_devices="$(what_is_mounted_on /live/image)" + + for dev in $(storage_devices "${black_listed_devices}" "${white_listed_devices}") do local result=""