mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 12:00:37 +02:00
umountall only if /install is a mountpoint
This commit is contained in:
parent
9955687b10
commit
4f528a51dd
1 changed files with 1 additions and 1 deletions
|
@ -396,7 +396,7 @@ _getavailpartitions()
|
||||||
# the destination root partition last!
|
# the destination root partition last!
|
||||||
_umountall()
|
_umountall()
|
||||||
{
|
{
|
||||||
if [[ "${DESTDIR}" == "/install" ]]; then
|
if [[ "${DESTDIR}" == "/install" && $(mountpoint -q ${DESTDIR}) ]]; then
|
||||||
swapoff -a >/dev/null 2>&1
|
swapoff -a >/dev/null 2>&1
|
||||||
for i in $(findmnt --list --submounts "${DESTDIR}" -o TARGET -n | tac); do
|
for i in $(findmnt --list --submounts "${DESTDIR}" -o TARGET -n | tac); do
|
||||||
umount "$i"
|
umount "$i"
|
||||||
|
|
Loading…
Reference in a new issue