mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
only umountall on archboot environment
This commit is contained in:
parent
4bea60a5ae
commit
8fbb5564e9
1 changed files with 8 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue