From patchwork Fri Nov 13 11:39:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bartosz Bilas X-Patchwork-Id: 1399694 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=grinn-global.com Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CXc2k500lz9sTc for ; Fri, 13 Nov 2020 22:39:58 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 9034187905; Fri, 13 Nov 2020 11:39:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4P3ZAKp9DS3n; Fri, 13 Nov 2020 11:39:51 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id F2CE5878D9; Fri, 13 Nov 2020 11:39:50 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 9702A1BF84C for ; Fri, 13 Nov 2020 11:39:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 874C6878DA for ; Fri, 13 Nov 2020 11:39:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CVhO8YsNIlSY for ; Fri, 13 Nov 2020 11:39:48 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from smtp2.megiteam.pl (smtp2.megiteam.pl [213.189.52.193]) by hemlock.osuosl.org (Postfix) with ESMTPS id 3F3AC878CB for ; Fri, 13 Nov 2020 11:39:48 +0000 (UTC) Received: from host-81-161-192-38.oxylion.net.pl ([81.161.192.38] helo=bartekk-pc.grinndev.ovh) by smtp.megiteam.pl with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86.2_XX) (envelope-from ) id 1kdXQe-0003fj-S0; Fri, 13 Nov 2020 12:39:45 +0100 From: Bartosz Bilas To: buildroot@buildroot.org Date: Fri, 13 Nov 2020 12:39:40 +0100 Message-Id: <20201113113940.842415-1-b.bilas@grinn-global.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] package/rauc: prevent occurring the error when directory exists X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartosz Bilas Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Add -p argument that ignore that specified directory already exists. Fixes: mkdir: cannot create directory ā€˜/home/bartekk/buildroot-2020.11-rc1/output/target/usr/lib/systemd/system/rauc.service.dā€™: File exists Signed-off-by: Bartosz Bilas --- package/rauc/rauc.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/rauc/rauc.mk b/package/rauc/rauc.mk index 1915c783aa..61c50ab316 100644 --- a/package/rauc/rauc.mk +++ b/package/rauc/rauc.mk @@ -31,7 +31,7 @@ RAUC_DEPENDENCIES += systemd endif define RAUC_INSTALL_INIT_SYSTEMD - mkdir $(TARGET_DIR)/usr/lib/systemd/system/rauc.service.d + mkdir -p $(TARGET_DIR)/usr/lib/systemd/system/rauc.service.d printf '[Install]\nWantedBy=multi-user.target\n' \ >$(TARGET_DIR)/usr/lib/systemd/system/rauc.service.d/buildroot-enable.conf endef