From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Sat, 02 Aug 2025 07:38:18 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ui4wk-006AzD-0x for lore@lore.pengutronix.de; Sat, 02 Aug 2025 07:38:18 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1ui4wj-0005Wh-PM; Sat, 02 Aug 2025 07:38:17 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ui4wb-0005WI-5B; Sat, 02 Aug 2025 07:38:09 +0200 Received: from pty.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::c5]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ui4wa-00BUwR-3A; Sat, 02 Aug 2025 07:38:08 +0200 Received: from rsc by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1ui4wa-003wMS-2m; Sat, 02 Aug 2025 07:38:08 +0200 Date: Sat, 2 Aug 2025 07:38:08 +0200 From: Robert Schwebel To: Lars Schmidt Message-ID: References: <20250801-yoga-tamale-cc41d69ec18e@thorsis.com> <20250801120132.956876-1-l.schmidt@pengutronix.de> <20250801120132.956876-2-l.schmidt@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250801120132.956876-2-l.schmidt@pengutronix.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain Subject: Re: [DistroKit] [PATCH 2/2] scripts: create target path in ptxd_make_world_inject X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: distrokit@pengutronix.de Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Applied this variant to next. On Fri, Aug 01, 2025 at 02:01:32PM +0200, Lars Schmidt wrote: > If the target path does not exist, the files are not copied. > To avoid that, create the target path in advance to copying the files. > Patch copied from ptxdist, see [1]. > > [1]: https://lore.ptxdist.org/ptxdist/20250801092153.610071-1-l.schmidt@pengutronix.de/ > > Signed-off-by: Lars Schmidt > --- > scripts/lib/ptxd_make_world_inject.sh | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/scripts/lib/ptxd_make_world_inject.sh b/scripts/lib/ptxd_make_world_inject.sh > index e8e94fb..a31184d 100644 > --- a/scripts/lib/ptxd_make_world_inject.sh > +++ b/scripts/lib/ptxd_make_world_inject.sh > @@ -24,6 +24,7 @@ ptxd_make_inject() { > > echo -e "\nInject file $(ptxd_print_path ${source}) into" \ > "$(ptxd_print_path ${target})..." > + mkdir -p "$(dirname "${target}")" > cp ${source} ${target} > } > export -f ptxd_make_inject > -- > 2.39.5 > > > -- Pengutronix e.K. | Dipl.-Ing. Robert Schwebel | Steuerwalder Str. 21 | https://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |