]> git.ipfire.org Git - people/bonnietwin/ipfire-2.x.git/commitdiff
installer: Ignore umount errors when target doesn't exist
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 22 Dec 2021 16:07:26 +0000 (16:07 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 22 Dec 2021 16:07:49 +0000 (16:07 +0000)
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>
src/installer/hw.c

index 265df2d8ce9015e1e46231af5d0051a6df3704ba..b532bb16e25a10157f623234664d83f211d7ac65 100644 (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;
                }
        }