Message ID | 20240221082221.11997-5-stefano.babic@swupdate.org |
---|---|
State | Accepted |
Delegated to: | Stefano Babic |
Headers | show
Return-Path: <swupdate+bncBAABBQXF22XAMGQEWPNY2JY@googlegroups.com> 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=mYalXAdY; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::140; helo=mail-lf1-x140.google.com; envelope-from=swupdate+bncbaabbqxf22xamgqewpny2jy@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-lf1-x140.google.com (mail-lf1-x140.google.com [IPv6:2a00:1450:4864:20::140]) (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 4Tfq5M3npxz23hc for <incoming@patchwork.ozlabs.org>; Wed, 21 Feb 2024 19:22:31 +1100 (AEDT) Received: by mail-lf1-x140.google.com with SMTP id 2adb3069b0e04-512a3aedf22sf648777e87.0 for <incoming@patchwork.ozlabs.org>; Wed, 21 Feb 2024 00:22:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708503748; cv=pass; d=google.com; s=arc-20160816; b=gvckHk0ZS9GhMbRoItfHITeTSTcFiFV2q6Z0QoWd+E/F5NY9Snm8Wf+wMxKrXRJWUN 2QbWSdMNZt4Qk8wjfAlCy7LZSb8YL1Q7A77YQmLCU/B8WAYDgsmqIAnsZKh1yET5FKdJ yA1GLi/+0MsyCGLRBu95GFKH22BeHHc52kOzkN1SlJh3p9oagu9PuKP4InNXl1fkL+Qy Q2YBP0OwjM6yDIdFV26/lh3A4dYjLoENr22u4DWXGLwOl9M9I0v2rwI8GEr9RIEAyV64 UcYOc96RWQlntbu8RoPJQHyoOBCzw9hf+Y+ulbcR3k28bjf5ugf8MW/ptejWB/RmvJGH wQWw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=/dQ+qt5xJIJS561Ag4BPLw57SRv/NiJxnXps0smzMPs=; fh=+Fly/4D4U3VDhC7/cDs6sg0K+JSyMP/z3la+PIdPHWo=; b=JJMsmdT3utN4Rg3Vl8AQ8z+E6PSvDJr4eaLTlO69ZXM5yga4MM2urczMO9ZKJXiJ5l ihcz/dUTPz4TUIw7jJdDWoVQxz+etjErfo4QLbBnFMYEp/FPobOST2nEs9R64uYeu4F4 LkN85WIVzlBbS+uO1on+qsjx9p6GxXHgqhjfqoOUVclOXspt6kZdkSjdV9z2R1WIts+B PZ0GexM09lTEsvq8QbEyFw/oDAOIu/9GvPDobAx3LCfwSvoNUCyoUWPIabf8KFRfAwOi L7Uqjo71LYgASqwWaq7KiM1xZoSALraZRLzRjqjnJWJ3IDltx6n5VciSK/u7c/aRDp3g JBDw==; 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=Lr0Hwtha; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.126.131 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=1708503748; x=1709108548; 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:references :in-reply-to:message-id:date:subject:cc:to:from:sender:from:to:cc :subject:date:message-id:reply-to; bh=/dQ+qt5xJIJS561Ag4BPLw57SRv/NiJxnXps0smzMPs=; b=mYalXAdYtSH9alA4+P5iT9wmuuz54hK3hpn5uZflwjHtlLILOeWW8iawkxUyNmfkGr vUC3XCATSuZ++iwvSMJ0bLUfSjBYLGR9XRBCZIStKp1goHKQLdO4sMQclOvUUD3oFX3i uNwx4aJNm9XdrB+iDXEKHGyw57Lgf2GS1MQWAe+92k6vEbkS0vcc5aUqFXkWXkByoCd9 yjOoCAq+qGxIoqdj0yr5ybBItDHrw164bQ6mHxcRgAxVPpRvHNHppQmg+8WGin/Pbx34 DhE+SGW0TOkxzA16ec1ZetXqkyEkc8Spj3Yne1968PMQfYPZXDixUPRsR7WRVHyJ7S51 f5bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708503748; x=1709108548; 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:references:in-reply-to:message-id :date:subject:cc:to:from:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=/dQ+qt5xJIJS561Ag4BPLw57SRv/NiJxnXps0smzMPs=; b=EqdW8wKi8ZtoaTTvU5GQXtBLNnJzjnOadQ8RAL69oZhnY81VVxY5v31nDVwSOHg5NK kzJx84jArdMVWjnkODTzfqUL+qApFcNuWWxhEyMicdY7pWGH5dFVwharVC52Kvb819Z7 ZecTY0/8EXVo4VG9M95LXZNXJ2X/cDMYz5GseYwOcikLu55iJhOAB57N3WLzIjt+380/ GuDE0AbbwK0lB/kBOlDaD1923gc0pKIQfl2VGobcLcPnn2JATMHHmyfB9AEksysNbuYJ aMVpLvhHFgX8G85RhU/GoZv0xLRY/o4H+2gIzyvuJAlL4RGMqkjGmrkSCSz2vmYbP3aK iDwg== Sender: swupdate@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCV3mQbDhtcT0WRGzBiu/5w1nrX9cV+mvJsC4eeEqHhqalkOhuwOLQjSJj1ugO7OxGVog5uC1I/4Cx2zgwB5hvZX+QpSbnnFMHrsnR21Fw== X-Gm-Message-State: AOJu0YwL/SgejNr+uqkda+cokNRMbpJf9j+FlMmbeFez3DFk4M+j4T/Y WCsp57VJ1mjo+/sDS79QvayWBG2hrFAOwjb/J7+KyIOAvF8jAxj9 X-Google-Smtp-Source: AGHT+IFUG7asSNMc3osLZqkdx6ZIHMiJVvJuPj6a8Ef43A/Bbq4mhFWEWSIUvBUr+y7NuB28AHIiVg== X-Received: by 2002:ac2:514a:0:b0:512:bc0e:27fe with SMTP id q10-20020ac2514a000000b00512bc0e27femr3606497lfd.1.1708503747022; Wed, 21 Feb 2024 00:22:27 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6512:3248:b0:511:4a70:6ac4 with SMTP id c8-20020a056512324800b005114a706ac4ls113459lfr.0.-pod-prod-05-eu; Wed, 21 Feb 2024 00:22:25 -0800 (PST) X-Received: by 2002:ac2:4a63:0:b0:512:d251:afcd with SMTP id q3-20020ac24a63000000b00512d251afcdmr576796lfp.27.1708503745091; Wed, 21 Feb 2024 00:22:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1708503745; cv=none; d=google.com; s=arc-20160816; b=tTKCRoqFa6O1rmULk/wnQzlyqzNUt0D/UqS13E0G4k4l9EBvkSmjBtl/MHEf8cCMez j9K2f/sGVGCW2Wq46Lg/gwlHINbj6FvHxmuji14fIFLpX0qc9+0hs+AybrTglOU0jOrN iNT5VTCR6bUOVOk9v5Lzu3IH0ziRAxdj5DO/iUmYAvU/xRY79MPm0U3QDjNFZXDuu9JP QTOvE6sNVZ2BVTpIrDepyZpxUE6hvTEWWA5n7j8An1Ns9tG55tz254GVk1IbDyhOitPP fXgbukmjWIBAfkSPJ87vDVhCb4zfShPNScqo3Cm+g0cqJZJBQk8oO0C/z0alDDkTsG6i rrWw== 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:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=KyRc4r7Mb9trc+qouCsPi/me1UtUg2wjG2d9UVulu10=; fh=TiEWcqMcKpHk5s7uErzpntoONrNfOXwKpI5P8bIlggk=; b=Cfb+7pAbq8YqVK3cDWehyFxzrgoonrq2f0OVZtye/8TB0Jm8d03Bf4k1/Tu6QRsHVV 53yguzj49t4LgBKJYZdme/6oCdkHnwfXFb70D/46tlnidKMJJewVilsedKp4us4RF56/ X9mICL9NjJcDSji1iZB/7TD48s7gbNs+PpMuLF/QlbbbVGDy1yRAMH71896BQY+w8Bil VW/yYEcCNwpIdWG2WQUSHV/yaRv3f/ckm4HirM6ux+bKiu1qkwJKCqW4SnOPYUB5uLJT ce1oJR+77WDZ2xjwB8JZHDoXlhLsmplhDxJ2SSn3bbWFt8HJvXxR8HqDsETddpzLRZ58 WjfQ==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@swupdate.org header.s=s1-ionos header.b=Lr0Hwtha; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.126.131 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org Received: from mout.kundenserver.de (mout.kundenserver.de. [212.227.126.131]) by gmr-mx.google.com with ESMTPS id be7-20020a056512250700b00512d743677bsi2417lfb.0.2024.02.21.00.22.24 for <swupdate@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 00:22:25 -0800 (PST) Received-SPF: pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.126.131 as permitted sender) client-ip=212.227.126.131; X-UI-Sender-Class: 55c96926-9e95-11ee-ae09-1f7a4046a0f6 Received: from paperino.fritz.box ([88.217.136.221]) by mrelayeu.kundenserver.de (mreue011 [213.165.67.97]) with ESMTPSA (Nemesis) id 1My2lr-1qioIx1DuZ-00zU2X; Wed, 21 Feb 2024 09:22:24 +0100 From: Stefano Babic <stefano.babic@swupdate.org> To: swupdate@googlegroups.com Cc: Stefano Babic <stefano.babic@swupdate.org> Subject: [swupdate] [PATCH 04/13] Store install Lua State in image structure Date: Wed, 21 Feb 2024 09:22:12 +0100 Message-Id: <20240221082221.11997-5-stefano.babic@swupdate.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240221082221.11997-1-stefano.babic@swupdate.org> References: <20240221082221.11997-1-stefano.babic@swupdate.org> MIME-Version: 1.0 X-Provags-ID: V03:K1:yP9fiAlXVuo5xkt91mPqJQ2DdrLr8JFrLdZfRR9DIPsjTw890aX CBSTLMDigvSvQu6ut5dIetowafYxmLfNaSOVFGvQ70vvl4HTnQODehYqkT64Zg9U1EZXZwU 7JBcFG1wQEm3igQwD/6jmSj5SPR27zvO1AA1eb8UToBsamUWsdvhkkCHXipPp52bHjfpTv+ v0B/qwKytrbnLtNl6D5oQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:SgY/faFHJ08=;Z7p388CqJo9yHF5BaNV15cFRi9P Yl1OwmwYYsWnFW21xBm62V6Uag0REuduSOOyTXDvGbRLucCnnrg8rQBZAn0RTPoxAv3Rjqc5Z OhJPjg5lEYyvFEk/Zt+SMOl7Ohvv05PfxxA9q6SAUHveNqgfnVDaA83fakzmwT1ldvcI5scgr Su38yL1molHJ6TYgkHTOs59NI1RsfDE8Bwh3ildCJaMJNADKmyF9HGEzrzXaGjbmOFMDAWKaE zaUW7ujH/+LPmxcovxjBd6hIXmuVYxmXLmqw1p1Y6Sh+uaZ0ROQgFG7oQkQD2gLHuHHbxxyDN kPfxWPTxFHVeI3rrL6oO9fFchVQVU7A49reqxrc6vWT+EgwHfbvL7hTCWHWAvVvL2Gxwaw2WN uTcbBqwB7eIf2s4Q9ChRs7wF1HIQ2kvYNUDEGineO/8vqA/VbsasuJh5xOYBl+iqg3ArMemcq e2AdrancOPRvE+CINLNEaiJ0S5Clhx+ikhBItgTFE6ORT2Qx55cFl5aSSRGYxkzbPjt+1NsGO DlO+jdNAJvTmNRXqkq+ERlb12d0w3rnyJV/VmqznIJCdWrFAqXT98foJUeXW0/5jH0d4yt9Q4 YiA7CLkFfwd4wT3qaToIzzPqqKwxow6+1edHFaI96rHC5Ketbg/eYkzs+PJ1h2OzEzBdM6wbn hjG3KOCOV3+49ID8AlJprdGoHafV/JlcOXnhmlD9nGdbCCigGcFNcVtXBWzLnUXCI49cqAwy6 rjZT/UlebkZqvpQbPITzFDmx4eoHwy7P/3Zpb55TAilf/0NaOe03eU= 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=Lr0Hwtha; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.126.131 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
Extend Lua Environemnt and post-failure scripts
|
expand
|
diff --git a/parser/parser.c b/parser/parser.c index 3944de64..5502e34a 100644 --- a/parser/parser.c +++ b/parser/parser.c @@ -384,6 +384,7 @@ static int is_image_higher(struct swver *sw_ver_list, static void set_img_globals(struct img_type *img, struct swupdate_cfg *sw) { img->bootloader = &sw->bootloader; + img->L = sw->lua_state; } static int run_embscript(parsertype p, void *elem, struct img_type *img,
Each installation will have its own Lua state. Save it into image structures to allow the handlers to access it. Signed-off-by: Stefano Babic <stefano.babic@swupdate.org> --- parser/parser.c | 1 + 1 file changed, 1 insertion(+) -- 2.34.1