Message ID | 20231009153152.416365-5-stefano.babic@swupdate.org |
---|---|
State | Accepted |
Delegated to: | Stefano Babic |
Headers | show
Return-Path: <swupdate+bncBAABB3NZSCUQMGQEWTEKZUY@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=w9EwP8dF; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::23e; helo=mail-lj1-x23e.google.com; envelope-from=swupdate+bncbaabb3nzscuqmgqewtekzuy@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-lj1-x23e.google.com (mail-lj1-x23e.google.com [IPv6:2a00:1450:4864:20::23e]) (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 4S431G647Vz1yqP for <incoming@patchwork.ozlabs.org>; Tue, 10 Oct 2023 02:32:02 +1100 (AEDT) Received: by mail-lj1-x23e.google.com with SMTP id 38308e7fff4ca-2bfe9ed93easf37615311fa.0 for <incoming@patchwork.ozlabs.org>; Mon, 09 Oct 2023 08:32:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696865519; cv=pass; d=google.com; s=arc-20160816; b=WXt+ebMAjGLNaBvs/LGs1sVZrO+Pes7vDzcHg4jTS2KU1OKeRD9/Uo72EwNnPXYPOI 20UZGIXqmrV4ZeAOMYpnyebxrqLvkXp+CKlAXMpHPbsl+71xzExT0CrSy85NN/SlObyx fko3wDGwRivNHIk3luHmwdv53zvhfCIp6X1a+Xn3FRlQ2xCQB5bRbNF2Ymkiw/GRHHZh Yn89JTilDf7UW5Yjmu6C1eAeYJ2X5oWNpuL+frJt09q3LIoKtM3ejy9cIk6ZkPXiyf5p 4MH/syQ/vGmGwdTjlKB/PLXwbrcXocOV714Rnfh3xgwz83W2dC45d7l4sKtVH7I7BGn9 +wWQ== 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=H23gSz+IU7cfNR9LZBQnNTL/vQRGZDoPgyVK8G5H7iI=; fh=TiEWcqMcKpHk5s7uErzpntoONrNfOXwKpI5P8bIlggk=; b=Q8BlP5ZvTA82ESQrAUFfI76PZO/5KkO88XyVdl8tlgpmpoj/WFUYA9tEsEB+Q+NFAi XyZ/1iFYkNUjebYFkrTAWFLCPO1MBO2hLPYUBb5hkxI8nhBTwh0Dvovh4/rIT2E9qt9Y 6vR0kc7d5BzHLS7j+T8/LSwOSUOosSZr+A/Tj+kIszCRTprXfZ9E3/lWZihKQDnVvS3Q VV0QndSpWd15FIDYz9vq4fAL9MDX1XjElSrnhAFW1rAliSXu8PiUwNy9Y4wsD1peBp3w oGaIKpiQRB1LGrEuqIMI0sJP3alP9gWlJwDSsSKNobsvE/w5VpPdaLvygyOmhD1efWNe 68+Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 217.72.192.73 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=1696865519; x=1697470319; 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=H23gSz+IU7cfNR9LZBQnNTL/vQRGZDoPgyVK8G5H7iI=; b=w9EwP8dFWRRDsgWFOMimuZkcuiC3zo2Hq4me4UecArOOfI4oT6ri42Sy9quxvcn2R5 rye8Urxq6/Qxmm9m9iqRIE2qDS7ZRazc87QPDs+kE4Sw4XivB8rHhdMNUbP+bxDKRX5j xHgrybkjrQhPSLiSNh/0fPPrbKPFNnEhIbSxN5sIIfwN5UIWFGZiFGeU/G6shnR+0r6W OVdqBO913pqzC2+Zlt7OdrP+QrlowFi3dHN5BzZk/OD46aQGfNaadsYNZ5YNqe4if4g1 zo/nm/wvOGfy3VinpOW2/C0GJZfYkOmBgcy/l1j69mzWLOc6uzq+6CcwOnaFxOr7XvKw ntYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696865519; x=1697470319; 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=H23gSz+IU7cfNR9LZBQnNTL/vQRGZDoPgyVK8G5H7iI=; b=wy6ZvnAnclNCBw3sj3UsiiDJcZMFOLAF641DARoq4+W8qopTA9wD4kAy6I1+BG2vVR Uo84dtcduUVQhn+lulOf0qrufz7nTfNqowiN0I8NUwVXifrsydIslgZNSzz6opWKP4iR gieLGL2lLnMeK2NGEHq85OYXxxV0hzDzs4a5DOaRo4pyL1O/5p9FiGO75zqyZm2ao8g9 mHutjW+6Obj/DK16k8Ik6fjBjJy5cVMs4ygz2jpqd/Aqx8rd5PukZMFcDqStjoscpHQ6 S9x3F72//BIv80VEgQCkRWNrU/5BBvm78P89RXn2OZwJJAmTiGZjwImuXC4N3lCOrSGd RFzg== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOJu0Ywqs0VRvrCSfExSTugtGqbx5M1RwNdaE63x2ezUgT0nZjemW4bf +RSHKkAgHse3nDTIaKPPwuE= X-Google-Smtp-Source: AGHT+IEM1vmTVByFNluLE3CkAuSHrYLZAzlD6IxmcSzgmIWcKmXDw/K5ONX/HD8rv4A22R9Kv6fNEA== X-Received: by 2002:a2e:b551:0:b0:2c2:7c75:bcd8 with SMTP id a17-20020a2eb551000000b002c27c75bcd8mr8760457ljn.3.1696865518084; Mon, 09 Oct 2023 08:31:58 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a2e:bc06:0:b0:2bf:fb2c:fd70 with SMTP id b6-20020a2ebc06000000b002bffb2cfd70ls231993ljf.2.-pod-prod-00-eu; Mon, 09 Oct 2023 08:31:56 -0700 (PDT) X-Received: by 2002:a2e:9347:0:b0:2c0:7d6:570b with SMTP id m7-20020a2e9347000000b002c007d6570bmr8579238ljh.26.1696865515994; Mon, 09 Oct 2023 08:31:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696865515; cv=none; d=google.com; s=arc-20160816; b=nxhNpXKhLFXl2AzdBGi/W+OOColJr/Pfqm+hDGat4ZZVw3w+RXFJW7AUz4M55pOl6r r43WH7dbfe81P4v0tmV56WnAS9LLGRoQ1dX53vkKtUvLCaqrAZsDnLsGhZKOMR4PGGjB GSXT9faoVpNJvG3IVqNq4DLrX8JlEVUT/mdjfyYqG0VnFooafaHSBL/4n0UphQeS1YBY HT2np+LiAd6/rBpGtjXpKD62tZ+6kNj8/4tWg3dmGCdCZBhCF5eJDdOTbYFhMRjfc+49 HrPztA4foOCmO5x5qnQJ1tl52tJwF1fQFiAVFdcjjkgAFOC2tHjJIL87hI4cZh3m0L5c PAww== 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; bh=SSW19CsTFctnkXHyKAeU+O+ZcfeBo2zQ/8FrPA7Qg6o=; fh=TiEWcqMcKpHk5s7uErzpntoONrNfOXwKpI5P8bIlggk=; b=TQtB1Z2E9F88/NGCbzu/wKhO6aAv2rUZC8WPYijtw7PiMJz7GGcEm5zt+vcELYPP8w 7m/OC57GdWHTyvJ2KTCPkK7CaUcyApPvlYNci1N0lMw2q95n9yZ+Af+O13cYe5ESlVGA hxteZ68w+WYhOz0j5jJ1EcIucTWZPi9OFzyRTOpolwKkauIh/Q1L1PRpjn8lWmlCfqOr r5YnxlxC4j6hkYX/6gwO72QGducDhLWqIvzQbmrv68Bva/beHsDCJx6gKBfhjg+twVtq 37J5/aw+UkakRZEhABncsq7vnbxqlTt7L+IxStli1FlIQjTe6IC3Y4Wwlc29g4ACL9er P/Ug== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 217.72.192.73 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org Received: from mout.kundenserver.de (mout.kundenserver.de. [217.72.192.73]) by gmr-mx.google.com with ESMTPS id m7-20020a2e8707000000b002c12145a0cbsi409101lji.7.2023.10.09.08.31.55 for <swupdate@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 08:31:55 -0700 (PDT) Received-SPF: pass (google.com: domain of stefano.babic@swupdate.org designates 217.72.192.73 as permitted sender) client-ip=217.72.192.73; Received: from paperino.fritz.box ([88.217.136.221]) by mrelayeu.kundenserver.de (mreue109 [213.165.67.113]) with ESMTPSA (Nemesis) id 1N8GIg-1rcUdn0sfg-0149Qv; Mon, 09 Oct 2023 17:31:55 +0200 From: Stefano Babic <stefano.babic@swupdate.org> To: swupdate@googlegroups.com Cc: Stefano Babic <stefano.babic@swupdate.org> Subject: [swupdate] [PATCH 4/7] Acquire namespace for vars from config file Date: Mon, 9 Oct 2023 17:31:49 +0200 Message-Id: <20231009153152.416365-5-stefano.babic@swupdate.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231009153152.416365-1-stefano.babic@swupdate.org> References: <20231009153152.416365-1-stefano.babic@swupdate.org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IUkqhDaRDtjSTxS46p3kwh/7xdI01EMWsdczl5LuAc0ISonGZX3uAHqGpURYuE zeEAZ246t5R8lpaamY4Qs4v9qi3pn7TmEXdHygTVjfvI7Tin8IdawjIN9UoNbKrhd9U0sOziC Y8TExa/Mw8QburQ== X-Original-Sender: stefano.babic@swupdate.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 217.72.192.73 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 |
Introduce SWUpdate environment
|
expand
|
diff --git a/core/swupdate.c b/core/swupdate.c index 6b536b83..07e5ef70 100644 --- a/core/swupdate.c +++ b/core/swupdate.c @@ -314,6 +314,8 @@ static int read_globals_settings(void *elem, void *data) "postupdatecmd", sw->postupdatecmd); GET_FIELD_STRING(LIBCFG_PARSER, elem, "preupdatecmd", sw->preupdatecmd); + GET_FIELD_STRING(LIBCFG_PARSER, elem, + "namespace-vars", sw->namespace_for_vars); get_field(LIBCFG_PARSER, elem, "verbose", &sw->verbose); get_field(LIBCFG_PARSER, elem, "loglevel", &sw->loglevel); get_field(LIBCFG_PARSER, elem, "syslog", &sw->syslog_enabled); diff --git a/examples/configuration/swupdate.cfg b/examples/configuration/swupdate.cfg index 46bf1f4c..c9053ddf 100644 --- a/examples/configuration/swupdate.cfg +++ b/examples/configuration/swupdate.cfg @@ -48,6 +48,10 @@ # Possible values are ebg, grub, uboot, and none for # EFI Boot Guard, U-Boot, GRUB, and the Environment in RAM bootloader, # respectively, given the respective bootloader support is compiled-in. +# +# namespace-vars : namespace used by libubootenv for application/SWUpdate persistent +# variables. This can be overridden in sw-description. +# It is one set in libubootenv configuration file. globals : {
Allow to set the "namespace" used by libubootenv to store application varables from the configuration file, adding the attribute "namespace-vars". Signed-off-by: Stefano Babic <stefano.babic@swupdate.org> --- core/swupdate.c | 2 ++ examples/configuration/swupdate.cfg | 4 ++++ 2 files changed, 6 insertions(+)