From patchwork Wed Dec 22 16:07:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 4937 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4JJys430f1z3wgk for ; Wed, 22 Dec 2021 16:07:36 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4JJys22gmmz1gG; Wed, 22 Dec 2021 16:07:34 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4JJys12xfxz2ykj; Wed, 22 Dec 2021 16:07:33 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4JJyrz4QdXz2xRb for ; Wed, 22 Dec 2021 16:07:31 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4JJyrz0PH1zFq; Wed, 22 Dec 2021 16:07:31 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1640189251; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=h266nR01xKKsjZf99qJYb5A0sbZoECBaU7riBMBKOV8=; b=AltcTjbC6mcUif25UaLJ/dAnW3JXa46HhUoDSnwxjSZh8BtPGmNq1b8uKZXTUTz7ci5d2X 6fM/YIa02uYTNZAg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1640189251; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=h266nR01xKKsjZf99qJYb5A0sbZoECBaU7riBMBKOV8=; b=shsMLYir5ZVCo4OzCVpLyFyF7rb7YthPzKCxp0kxapI1V5Z0BBWHFpoGL0SWkb6sZuqL+H zcQOTc/e/0G9GrlmYoDwmTg0G9+N/3XEHx0hplWvvdkISHc80KOz3/5F5hkXCwfl/FzV4M Ym0bSH1QVi+55RGLbN/xv1qV6RN6AoKC08fiJmSXa+lAq2xuZXhNS5fkLwdbxUxDYrMEYQ 379wKe6rLPYNyenPlAeNrr27behpGYIXwahk1nveZqVlRfP8PZ42XELrDAclOxxetVmm27 pne9Qa6sJiHViuLp08h2EoQVmn8QQIHQ17L+CT7x3Kuc4qbuV2GlFX8slEJBkQ== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH] installer: Ignore umount errors when target doesn't exist Date: Wed, 22 Dec 2021 16:07:26 +0000 Message-Id: <20211222160726.2895568-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" 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 --- src/installer/hw.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/installer/hw.c b/src/installer/hw.c index 265df2d8c..b532bb16e 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; } }