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