fix destdir mount to correct execution on break

This commit is contained in:
Tobias Powalowski 2010-07-04 21:42:27 +02:00
parent 0740f9a7d8
commit 9e639dd044

View file

@ -264,12 +264,13 @@ manual_media() {
destdir_mounts(){
# Don't ask for filesystem and create new filesystems
ASK_MOUNTPOINTS=""
PART_ROOT=""
# check if something is mounted on $DESTDIR
[ "$PART_ROOT" = "" ] && PART_ROOT="$(mount | grep "$DESTDIR " | cut -d' ' -f 1)"
PART_ROOT="$(mount | grep "$DESTDIR " | cut -d' ' -f 1)"
# Run mountpoints, if nothing is mounted on $DESTDIR
if [ "$PART_ROOT" = "" ]; then
DIALOG --msgbox "Setup couldn't detect mounted partition(s) in $DESTDIR, please set mountpoints first." 0 0
mountpoints || (PART_ROOT=""; return 1)
mountpoints || return 1
fi
}