From patchwork Thu Feb 15 15:17:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 1899384 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20230601 header.b=qRb1iGta; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::43b; helo=mail-wr1-x43b.google.com; envelope-from=swupdate+bncbaabb76vxcxamgqedtkbszy@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-wr1-x43b.google.com (mail-wr1-x43b.google.com [IPv6:2a00:1450:4864:20::43b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TbJZq3Kv8z23hm for ; Fri, 16 Feb 2024 02:17:23 +1100 (AEDT) Received: by mail-wr1-x43b.google.com with SMTP id ffacd0b85a97d-33d01324dadsf234823f8f.2 for ; Thu, 15 Feb 2024 07:17:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708010240; cv=pass; d=google.com; s=arc-20160816; b=ijTpecEwvx0gB4pxpTSzQUlYlDKA0N1yDKDZY2+YGmxATXgcGdJn3XgTqRSJvWkoVa CKBnfKPxEjtQZj/kddf/5aZt0OnMLgm8vHWiu6UCXTxKlZE2DZT3iS54eFuuortAlluB gSq/VAbAhXTOwiJC1ZyxLXBC05YHzgbG8dhE419etArWcNPJy4LqNe1uWn2b4LQ/iTMD Q+UOOJ83QbP6A6AriDOtawY1U7cLiDIqyALd1/zgISYoJQldyhUDv+hPCgfvIIR8MLw3 AbOm278XOuslh8H8sRcTz9CuuPlBAenbVlDs6dwp68tRwXQ6rXxdwzYCm44RLdHgeq3u CaYw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:ui-outboundreport:mime-version :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=Lmq/duO4XIBtR3LBCv8AB+mfcLIQVycJX/XaqBVYYpY=; fh=Nec8klojEEhEiGOa9etDGlBqslv0wky4QY+6P4XtQZY=; b=tmxom+90jU0adSgXUWt9ZRqseqg2tOKcA4if1XWoYhY169kOygxo+ppEsSBcu92jk0 fzlpsTX3MDdocoWy+/YoTVC5C0TonHVOZCIDOF54kjoHy9x1lq8h3DIS7NvN09jbuc4Y GAHIJGg4YjDwT/I7EMrxW2sYfaIxiBe0cDQZs9UiXyFtROOd9B4H8YkYdB3N++fwTMBL RR6iKzXnXEIGQPyj90JsK9A/ndTEtjtxGsT1MJFsP3APlSm36Ak64rXehG50S6fiRgVK ZJsazAiHhxtuJIuRLUxd371KTbrtGZtplXJD6J7u3pOt0PxLJBkZxqqzbY05TCyuzzLQ W8mw==; darn=patchwork.ozlabs.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=c87pM+Lg; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.126.130 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1708010240; x=1708615040; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:ui-outboundreport:mime-version:message-id:date :subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=Lmq/duO4XIBtR3LBCv8AB+mfcLIQVycJX/XaqBVYYpY=; b=qRb1iGtaeJEUg9CfeXbUpz47AumPgglJJU6zIA5SsiNYE7TGMYqhOGWpJyyFk1y964 TDIDScIeK5gbHRvIIIWNDAT3gbQFhg1Kn61svL5Hh9G7lJEZH9qT9VbEZ1lbTBoy7dRX MGILOt4GdKqARAvd17ixWDVKIyMSEAm6A+TeA8cwSzDoweaH5hwG9TGbS/r+Dc/s8r3m KfZXCMULDUFJtgTyte1rFoJjL0gLI+skfKL4qM3oPlZCZEJu04O+HReFIlytu2Yy2CjA 7mR65FHwUXWUGUEhmgM8TB0GAHIv9S0roDr66SSuULxHRMHqu2JLe2HWazBksNtFA6Cc FS2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708010240; x=1708615040; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender :ui-outboundreport:mime-version:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=Lmq/duO4XIBtR3LBCv8AB+mfcLIQVycJX/XaqBVYYpY=; b=ivc1B64edTq9OPKoOmQMw5BckkByYrrz+E2Vu1yFHMuWW9wpFM/+8i02f1jzB3HxQZ 5qCWu1FPKwW6zOpBNMZEyRoOIQGNHP/RdeS6N6XAQWFnXjmFPrK83Z3zkS7dNLZaS5ro 4+wak9P7Mizzwz9WdjFtcb0FlqqapbvODVGC51/IvPXRMd9s2mDB/VnisYPgIO1gqMvq EaZ5j8EH3nStwV8bnYKqaqSBiaQAtFbjMBiAsdB+L5p4Ig94woUQfY1sBoTJ1WdmSxQO LHTQ2C3iWnAIsBpgsUxAqUVqRy8UYBAFboY7XGD8q3kKtDtGsnfU6SnL2SDno3qAvySg 0sdw== Sender: swupdate@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCVtVzSB1QkPUNy019g6OencXblIzy1Qal3y9i/THRO0werl+yEaeZHEERRII8nxak7NHL3zMn+hrZBUv0FsnXRYiiw0BC8f+o5Y61IGUA== X-Gm-Message-State: AOJu0YzSBVS5K+PSX6qzX2jRMxpJmeD5C3nTp9HaPPAJ8PWT6SLUEfYg nJADFHfay9e5PYZkSF5SZnp0A5hmoseR39CQt8/yXYfzRaRfk/Wm X-Google-Smtp-Source: AGHT+IF6agqnguVIHJTAXktwLub5boAzZjSnYe0KgjXfdHuf+/YYV5zilX73TIQ1CPaslOJDlxbCDA== X-Received: by 2002:a5d:51ce:0:b0:33b:74a3:db94 with SMTP id n14-20020a5d51ce000000b0033b74a3db94mr1592235wrv.2.1708010239878; Thu, 15 Feb 2024 07:17:19 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6000:1567:b0:33d:806:1b41 with SMTP id 7-20020a056000156700b0033d08061b41ls260703wrz.1.-pod-prod-08-eu; Thu, 15 Feb 2024 07:17:18 -0800 (PST) X-Received: by 2002:a5d:43ce:0:b0:33b:457c:9b06 with SMTP id v14-20020a5d43ce000000b0033b457c9b06mr1620873wrr.28.1708010237915; Thu, 15 Feb 2024 07:17:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1708010237; cv=none; d=google.com; s=arc-20160816; b=w6kdTechSCvbRLouwtL1QHbDhUXjx90WcMpsiYPS/ouCBHZ5Aa+cKWGF8SCCDjhh1b eK11C6kOkVjcfK6r/rC6gfG0rHgrbH/pf3C2XhFnlm0el6/OGyY5+MksxHi00uU4wkya TJQsJSBXI20dEP4Ob2Hw65EOuoe7n9UaqhatScrIOzih2rhY6gPr6WSRF0BDWzoJqQC3 atzOPllQr6nhrRK//EUUsBsF4u+uEOekHiSsYY3/coGer+KIx9Ic497dRJMcb4lBxwSn ThA09F6osA4MHRZLRDuXtnJSjE/nOc/pRXBX8eQ9XnguiOhwnq3M3eMdEO43LbBlQZD1 LkYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:mime-version:message-id :date:subject:cc:to:from:dkim-signature; bh=olwuTtk9wYv9ucfcBr1dXIoBA7zoRlwJ83YibV2Q9IU=; fh=TiEWcqMcKpHk5s7uErzpntoONrNfOXwKpI5P8bIlggk=; b=EM0nH+a2KOCij540DknUpbmTxfMMbwq7+ZXYh4LdAwY6XFYURvVaXRP7NKqyTUxxgv AI8vRqJmLXv5HXaCBr6iCnUdcXo4mOQqNhiuKCWXX6mlh3E6XXXz0l7g7wihIsER1SlW 0vOTLNBEbVGkpegcpIxr9CMFZwVEtU9N3x6fLIweIIC0STDbjqWjh/u1ngn7I3sNSQ3F mavXipGw8L9G53AfruBXBmKBrjbqYAunNnq/QZsWjp+qIsp1lWCqf2jfswem5bFqyPsE I+LmXMUw59IY+axq1s8fvTaayoYyu7u3bYEn5VL9+n4hyleaxpOwSYp7S31HdDkkwneP Nc1g==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=c87pM+Lg; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.126.130 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org Received: from mout.kundenserver.de (mout.kundenserver.de. [212.227.126.130]) by gmr-mx.google.com with ESMTPS id y6-20020a5d4ac6000000b0033ce867f703si60421wrs.5.2024.02.15.07.17.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 07:17:17 -0800 (PST) Received-SPF: pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.126.130 as permitted sender) client-ip=212.227.126.130; X-UI-Sender-Class: 55c96926-9e95-11ee-ae09-1f7a4046a0f6 Received: from paperino.fritz.box ([88.217.136.221]) by mrelayeu.kundenserver.de (mreue009 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MLz3R-1rJNiW1xM9-00HzEi; Thu, 15 Feb 2024 16:17:17 +0100 From: Stefano Babic To: swupdate@googlegroups.com Cc: Stefano Babic Subject: [swupdate] [PATCH] doc: extend pre install script Date: Thu, 15 Feb 2024 16:17:16 +0100 Message-Id: <20240215151716.115550-1-stefano.babic@swupdate.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:HTrFy8FgPYmLRj6b/M1HMEApM7MLNLa5b9iQ4V3dEeUmFdb+vzs D23Lb9LvROfyA2PtvoEyb4Y8DVIeZZLWjjqTdO7MxPC6PZb6rxoIO6uFh1xUmYn0504JCKq WdqYEdvzgCpIeSmbVUyAQ2UrqmHp1gz2ZhHkRtdkQxzKBDbNmdw6rIPn+JdYgz2GHsYathf ezWV9uDe4tMgNe9G5jbDw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:OMBJtV1adqo=;ta0cjSJ57KwUpeKEYfjQdea6mlC ExaVHpWKazDcQAE8JYkhwkv3Q/aeSKG1n8HOHqFhUS37VPrMOfWP2Qd6i0pdsPYyJ2LcBXOiJ j33/Wt99joC9jYG5lw0vAb7vV9nWIqpkxvxWIk4RT5hFfCPIqwz1hJpd81fIQAD4XlzAHvgJL uxl27BRpYZ9KBE0luvDtCwDU0dXRWe4KX26wqlTXyaKQfCnEROmrH/ARjAl0JvAGF8KcWZDS2 I3xpr2zu+b1fMxWjbZDOIAAo9oj8N0y/bZ0QrXwqWEgO83uANxO8gyrL6tMUcsvPhbwA0ay2R idTPeGJ9UGFc8ls6Xj0kAR21B07zEl8AUPstBGo6EBObP+i74jnJWCnSyzHJulJlVs8NQhz57 5+Ykgc6gdUuNrkbdgw0SN1NZYPs2+3dYLseEv7ECDqjsa1r23p5aWWJXnmWtztkZvnFG4/60G x3+C83I00Mj+BYhJyJOM1qBQrJSZdFnxg9SelePAS8GSwmLtbQ0LBzUtEx8eDB5YDNFVLqKKi 5AX8s1rUBFoZwknXLCD9hMHrHUx7FzN2xM5/EEefLVZ7Llq6L2h86a8w7IVujdzG7gBvhNDlc jhODS7RdWyPxCqUYoVwcym+lc/XcEAqET+Is64Cqayfs1fJ8SVhtVA9F6/CpOIv4hJlfRYmWi ihn2tUoc/JFeWYR1Mgu1J8gpF+z0Xqzs4hDwX3aXUkGkEDWB1ExKhySwrzDIG+bZk8c0qjrFe rFUH7mHcA0RVk9Mb3JhWgzKnu2I0sGFQdknws3Nmd5XoPAkqACtZlE= X-Original-Sender: stefano.babic@swupdate.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=c87pM+Lg; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.126.130 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Explain why pre- install scripts cannot be always executed before installing. Signed-off-by: Stefano Babic --- doc/source/sw-description.rst | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.34.1 diff --git a/doc/source/sw-description.rst b/doc/source/sw-description.rst index 85932198..6fe2d05a 100644 --- a/doc/source/sw-description.rst +++ b/doc/source/sw-description.rst @@ -829,6 +829,14 @@ SWUpdate scans for all scripts and calls them before installing the images. If the data attribute is defined, its value is passed as the last argument(s) to the script. +Note that cannot be ensured that preinstall scripts run before an artifact is +installed in streaming mode. In fact, if streaming is activated, the artifact must +be installed as ssoon as it is received from network because there is no temporary +copy. Because there is no fix order in the SWU, an artifact can be packed before any +script in the SWU. The right way is to write an "embedded-script" in Lua inside +sw-description: because it becomes part of sw-description, it runs when sw-description is +parsed and before any handler runs, even before a partition handler. + postinstall ...........