mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
fix destdir mount to correct execution on break
This commit is contained in:
parent
0740f9a7d8
commit
9e639dd044
1 changed files with 3 additions and 2 deletions
|
@ -264,12 +264,13 @@ manual_media() {
|
||||||
destdir_mounts(){
|
destdir_mounts(){
|
||||||
# Don't ask for filesystem and create new filesystems
|
# Don't ask for filesystem and create new filesystems
|
||||||
ASK_MOUNTPOINTS=""
|
ASK_MOUNTPOINTS=""
|
||||||
|
PART_ROOT=""
|
||||||
# check if something is mounted on $DESTDIR
|
# 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
|
# Run mountpoints, if nothing is mounted on $DESTDIR
|
||||||
if [ "$PART_ROOT" = "" ]; then
|
if [ "$PART_ROOT" = "" ]; then
|
||||||
DIALOG --msgbox "Setup couldn't detect mounted partition(s) in $DESTDIR, please set mountpoints first." 0 0
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue