[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#934701: live-boot: fixed handling of live media device in case of persistence



Package: live-boot
Version: 1:20190614
Severity: normal

When using persistence, the live media mount point is moved from
/run/live/medium to /run/live/persistence/$something.

This is probably unintended and makes it much harder for third-party
tools to find the original live medium. The attached patch fixes this issue.

Best regards

Ronny

From a362df2b7c525e69b26c6744579515e7a4aafc93 Mon Sep 17 00:00:00 2001
From: Ronny Standtke <ronny.standtke@gmx.net>
Date: Tue, 13 Aug 2019 18:03:21 +0200
Subject: [PATCH] fixed handling of live media device in case of persistence

---
 components/9990-misc-helpers.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/9990-misc-helpers.sh b/components/9990-misc-helpers.sh
index 1b89e59..67571ac 100755
--- a/components/9990-misc-helpers.sh
+++ b/components/9990-misc-helpers.sh
@@ -1071,9 +1071,9 @@ find_persistence_media ()
 	# in one union together.
 	#
 	black_listed_devices=""
-	for d in /run/live/rootfs/* /run/live/findiso /run/live/fromiso
+	for d in /run/live/medium /run/live/rootfs/* /run/live/findiso /run/live/fromiso
 	do
-		black_listed_devices="${black_listed_devices} $(what_is_mounted_on d)"
+		black_listed_devices="${black_listed_devices} $(what_is_mounted_on $d)"
 	done
 
 	for dev in $(storage_devices "${black_listed_devices}" "${white_listed_devices}")
-- 
2.20.1


Reply to: