only umountall on archboot environment

This commit is contained in:
Tobias Powalowski 2022-04-12 20:09:05 +02:00
parent 4bea60a5ae
commit 8fbb5564e9

View file

@ -396,12 +396,14 @@ _getavailpartitions()
# the destination root partition last! # the destination root partition last!
_umountall() _umountall()
{ {
swapoff -a >/dev/null 2>&1 if [[ "${DESTDIR}" == "/install" ]]; then
for i in $(findmnt --list --submounts "${DESTDIR}" -o TARGET -n | tac); do swapoff -a >/dev/null 2>&1
umount "$i" for i in $(findmnt --list --submounts "${DESTDIR}" -o TARGET -n | tac); do
done umount "$i"
DIALOG --infobox "Disabled swapspace,\nunmounted already mounted disk devices in ${DESTDIR} ...\n\nContinuing in 3 seconds..." 7 60 done
sleep 3 DIALOG --infobox "Disabled swapspace,\nunmounted already mounted disk devices in ${DESTDIR} ...\n\nContinuing in 3 seconds..." 7 60
sleep 3
fi
} }
# Disable all software raid devices # Disable all software raid devices