installer: Ignore umount errors when target doesn't exist

Some paths might not exist on some systems which caused the installer to
abort the installation. This patch makes the installer ignore this
condition.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
Michael Tremer
2021-12-22 16:07:26 +00:00
committed by Arne Fitzenreiter
parent 68b5761089
commit 91588cb42a

View File

@@ -188,6 +188,11 @@ int hw_umount(const char* source, const char* prefix) {
case EINVAL:
r = 0;
break;
// target doesn't exist
case ENOENT:
r = 0;
break;
}
}