Ubuntu Pastebin

Paste from xnox at Wed, 16 Dec 2015 21:16:08 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
diff --git a/debian/live-installer.postinst b/debian/live-installer.postinst
index f8795b5..a275069 100644
--- a/debian/live-installer.postinst
+++ b/debian/live-installer.postinst
@@ -42,11 +42,11 @@ db_input low live-installer/mode || true
 db_go || exit 10 # back to menu
 db_get live-installer/mode
 mode="$RET"
+PLACE_FOUND=0
 
 process_places () {
 	PLACES="$1"
 	PREFIX="$2"
-	PLACE_FOUND=0
 
 	for place in $PLACES; do
 		if [ -n "$PREFIX" ]; then
@@ -119,14 +119,11 @@ process_places () {
 			mv /target${f}.live-installer /target$f
 		fi
 	done
-
-	return $PLACE_FOUND
 }
 
 install_live_system () {
 	# Look at
 	PLACES=""
-	PLACE_FOUND=0
 
 	# Load filesystem support
 	for script in $(ls /lib/live-installer/*); do
@@ -153,7 +150,6 @@ install_live_system () {
 
 	# look for local mounted things first
 	process_places "$PLACES" "/cdrom"
-	PLACE_FOUND=$?
 
 	if [ ${PLACE_FOUND} -eq 0 ]; then
 		# Did not find anything, what if there is a remote export?!
@@ -171,7 +167,6 @@ install_live_system () {
 		if [ "$RET" -eq 0 ]; then
 			# possibly export of the CD, try fetching live image from there
 			process_places "$PLACES" "$PREFIX"
-			PLACE_FOUND=$?
 		fi
 	fi
 
Download as text