From: Michael Tremer Date: Wed, 22 Dec 2021 16:07:26 +0000 (+0000) Subject: installer: Ignore umount errors when target doesn't exist X-Git-Tag: v2.27-core163~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=91588cb42a2322a8aebd176ec59d1b18e8bbbd9b;p=ipfire-2.x.git 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 Signed-off-by: Arne Fitzenreiter --- diff --git a/src/installer/hw.c b/src/installer/hw.c index 265df2d8ce..b532bb16e2 100644 --- a/src/installer/hw.c +++ b/src/installer/hw.c @@ -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; } }