From 91588cb42a2322a8aebd176ec59d1b18e8bbbd9b Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 22 Dec 2021 16:07:26 +0000 Subject: [PATCH] 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 --- src/installer/hw.c | 5 +++++ 1 file changed, 5 insertions(+) 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; } } -- 2.39.5