installer: Ignore umount errors when target doesn't exist
Commit Message
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>
---
src/installer/hw.c | 5 +++++
1 file changed, 5 insertions(+)
@@ -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;
}
}