From patchwork Thu Feb 22 10:56:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hartikainen, Sami" X-Patchwork-Id: 876593 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:400c:c0c::238; helo=mail-wr0-x238.google.com; envelope-from=swupdate+bncbaabbp6exlkakgqebtcpzoi@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b="pWGkiCkF"; dkim-atps=neutral Received: from mail-wr0-x238.google.com (mail-wr0-x238.google.com [IPv6:2a00:1450:400c:c0c::238]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3znBCl11g4z9ry4 for ; Thu, 22 Feb 2018 21:58:10 +1100 (AEDT) Received: by mail-wr0-x238.google.com with SMTP id j21sf3378386wre.20 for ; Thu, 22 Feb 2018 02:58:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1519297087; cv=pass; d=google.com; s=arc-20160816; b=w7dzDb2UTlF7M9VhczWsEvJgIrDjhCzDlaso+dJWjaBlKWPBWzpkrWbhAIYiguHkax huqHvcLDu23tKF7TtefXqfZsQ+ZU95zqPhCjV7bd9uhQDbUJ3o1JFAe2TadIDW4Z3qio ByEdkC/ZUQTuhKNjYJPe8bRcIec9MjG9vMBwqYD+nXw1bjkIMQ5hk+F81qTUau4cstzK I/kBb+mhcj4eE3fSn70hhbDMvp82FdZe/tcCuhAH73zlSB5ghqXIvv1rei64KqUn+sbm miKazjMi7DFJZbu2bDlZLWp3WDiX96H+bHCrFobsq2XdpRlaLIrqJHdaKr3DcNIZykRR MCNQ== 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:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:to :from:arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=ZNPVJtzi0B864xKGFjbSkqU3InTUbZoY2IuSAOtDPGg=; b=GwOK5BZV2kB42RKJIBuHgdiFJDtT2JplsV9uDdqS3SMFBpkAZAcpVWssuWD/KQSnA5 TM7VnYW/wmFOl+gF2igym2lmR9exn9eN8NGn2vzNaLGPyT3FGus6v5pfuHJyKgbI1eD3 QeUDBvNAE14OKTg4o+eN/cIbnfTdGJ7XRHE/GPqNbg+JaHBlGHkd8NBWHMmhBcGRd+he 4sqgCybeqJyzsThb8XTibI29BsdQOFzgfFL+ttnvzzrPW464dZPEaw3woLpRRG6VYzE8 dO6VFGk1yK7QStLZ1m2Fa3c90yOoOYG4bkSSwAsKwXtOjDS1vuHI3XT1qSLTAMSGtqLf akFg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@Teleste.onmicrosoft.com header.s=selector1-Teleste-com header.b=pFR4rMsC; spf=pass (google.com: domain of sami.hartikainen@teleste.com designates 40.107.1.69 as permitted sender) smtp.mailfrom=Sami.Hartikainen@teleste.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :spamdiagnosticoutput:spamdiagnosticmetadata:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=ZNPVJtzi0B864xKGFjbSkqU3InTUbZoY2IuSAOtDPGg=; b=pWGkiCkFS3HPm0IDcbB0ZEhcqTdX2+BoHuOw7MR748OC2hTDlZpXFZRdDb/1L95OCW gS33WK5XGcWtOsm5IRZjlfM93h1OkSCFXhAO31BIM2SDFm/IAzB2QJOzWwp4Xw1gZpuc Jn23YDU2sKArAGQ2TMAGN57R8r8DNIMe4JnCVxjWfHrctNqqYRbUpRbPPc1kiNWMisFE +zeV4MNv3LvYAs3LhR5fuOljdl+WaUz+9fAsHj5T4y2HfD5Ifjt1hrcSp0vT/A1iX0zl kRLcR4kZ7UdXTyneAaMut6JnQzL1ipXJox15r2vfd99nq4c+Ge/GmUdvhXohmbeMM9r5 pjIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :mime-version:spamdiagnosticoutput:spamdiagnosticmetadata :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=ZNPVJtzi0B864xKGFjbSkqU3InTUbZoY2IuSAOtDPGg=; b=ozWdQT89NcxQpaKvbi9JOcMdnPvoKg9kUzkxhISHa7hzE69Zhjo9VXr1lULWXHTYkA yuDHxrSYC1yxgglhp1x7gjgxoMktjMbUdpJOgQRBcsXhE0oYkveZBbWTFOnTx6M59H8o ihRNvQH7lFYp/DH3o9UuhLsWYjNoL7rtHV20CQtmvj6jElRfbHSfhnl42iGbVkoF1bCW UVl6YYalisQ/KC3qirmGa6T0+usECXS91VbcTpprxpuuW2Np7OzGnJ8iA5g9IvBzb9Bd Lz/silQVTOmQaiilfbJ8Iz13ZTjB3QPB73eJ4AnZ/fR0XxuypsFiIF4GGcQxb/Fpeqox V8xQ== Sender: swupdate@googlegroups.com X-Gm-Message-State: APf1xPBEEYwQIklt3lKOiuSU26RCPMi/jtlWgcbuaG9nSLPVyMqGK7TW aOa5C+Il0pdgTf7CWB92s6o= X-Google-Smtp-Source: AH8x226hT9+iozFAcoHBi5itS3XXGyjSeA7diWgE+P2VleQ1jobpmt9KIp8vDXVMwPcMa/y7SyCKwg== X-Received: by 10.28.133.79 with SMTP id h76mr76854wmd.7.1519297087361; Thu, 22 Feb 2018 02:58:07 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 10.223.139.138 with SMTP id o10ls1047499wra.1.gmail; Thu, 22 Feb 2018 02:58:06 -0800 (PST) X-Received: by 10.223.182.6 with SMTP id f6mr607886wre.32.1519297086908; Thu, 22 Feb 2018 02:58:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519297086; cv=none; d=google.com; s=arc-20160816; b=bc1T6x8cpW5/0IhPkzmWnBMzlZ9cadSzXITeP4smufgIulQg1miMuQe4eZ4JPMKSyb DzW5KRgxms7ZGu8unf0BjkHDfdHs10zBLgY/pA81s38X/JqGKfpYgmxDjty0WEdwHG64 Gek+qjLa1CeNx7w9a0T2OpvhzHbKd7znJCSYgYak1dy8m9eQLCqu+omwEjPJgsjOjaiK zdQfJpSDSmztgLNgy/0JtqrrOamNwPw0Ro7OJI1NuFLdb3ByiUJmOSeYg60AtHB7DFBu Snd7KkKfSoPEMo0dHqPxTOQARBrNxuKyHPyMsr4PjR9t84cyZTvj9375ZnNqAkSCqQtK l/6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=spamdiagnosticmetadata:spamdiagnosticoutput:mime-version:message-id :date:subject:cc:to:from:dkim-signature:arc-authentication-results; bh=p1w1pEPiADWIMypFGnVYlpmtmE1w+r2Md5ihcKNcxzY=; b=g72RZPBvjrC50NLF1yS3EOiTtJZC7yzDttkGjpGFMKiRWVp2+2bSZqCLaTzcs/hQ9y LU7m4A730UyCzwRXYCGJYrIxUTDkin38+1/YKYOp8GGiW6IZZk1xS62EjqdElHoY8+Ul 7kDgD62DUBD0WWT0TmM+Pcdgbti4XYGoE9xT2dg2Z9f0d1D8CBB/wUKPRSAD4ZcVqOXJ XmS8YtIdzN4B0ZtSogPPAS1hQELK9ARXJXuh+/L4gkhXd80Bk24uf0VW6CiW99Q5Lt+J OANpX7VikfF9Vni47B5x0AkmtATa7I8b3cwAvV9S5Yzn7JZSeG3fS3skmMp0rW0LAbcg ed4g== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@Teleste.onmicrosoft.com header.s=selector1-Teleste-com header.b=pFR4rMsC; spf=pass (google.com: domain of sami.hartikainen@teleste.com designates 40.107.1.69 as permitted sender) smtp.mailfrom=Sami.Hartikainen@teleste.com Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10069.outbound.protection.outlook.com. [40.107.1.69]) by gmr-mx.google.com with ESMTPS id g70si37095wmc.3.2018.02.22.02.58.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 Feb 2018 02:58:06 -0800 (PST) Received-SPF: pass (google.com: domain of sami.hartikainen@teleste.com designates 40.107.1.69 as permitted sender) client-ip=40.107.1.69; Received: from AM3PR04CA0128.eurprd04.prod.outlook.com (2603:10a6:207::12) by AM0PR0402MB3331.eurprd04.prod.outlook.com (2603:10a6:208:19::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.506.18; Thu, 22 Feb 2018 10:58:05 +0000 Received: from VE1EUR03FT025.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e09::206) by AM3PR04CA0128.outlook.office365.com (2603:10a6:207::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.527.15 via Frontend Transport; Thu, 22 Feb 2018 10:58:05 +0000 Received-SPF: Pass (protection.outlook.com: domain of teleste.com designates 212.213.19.238 as permitted sender) receiver=protection.outlook.com; client-ip=212.213.19.238; helo=FRAX.twin.net; Received: from FRAX.twin.net (212.213.19.238) by VE1EUR03FT025.mail.protection.outlook.com (10.152.18.74) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256) id 15.20.506.19 via Frontend Transport; Thu, 22 Feb 2018 10:58:05 +0000 Received: from contrix.teleste.com (192.168.150.55) by FRAX.twin.net (10.1.0.45) with Microsoft SMTP Server id 14.2.247.3; Thu, 22 Feb 2018 12:57:48 +0200 Received: by contrix.teleste.com (Postfix, from userid 1001) id 1698620C; Thu, 22 Feb 2018 12:57:48 +0200 (EET) From: Sami Hartikainen To: CC: Sami Hartikainen Subject: [swupdate] [PATCH] Fix bootloader script handling Date: Thu, 22 Feb 2018 12:56:59 +0200 Message-ID: <1519297019-25875-1-git-send-email-sami.hartikainen@teleste.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:212.213.19.238; IPV:NLI; CTRY:FI; EFV:NLI; SFV:NSPM; SFS:(10009020)(376002)(396003)(39380400002)(346002)(39850400004)(2980300002)(438002)(199004)(189003)(51416003)(8676002)(6916009)(8936002)(2351001)(81166006)(72206003)(103686004)(50226002)(106002)(107886003)(6266002)(86362001)(97736004)(68736007)(47776003)(42186006)(52956003)(316002)(575784001)(478600001)(4326008)(6666003)(53936002)(16586007)(26005)(186003)(5660300001)(336011)(2906002)(81156014)(36756003)(48376002)(356003)(50466002)(106466001)(69596002)(305945005)(1857600001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0402MB3331; H:FRAX.twin.net; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; VE1EUR03FT025; 1:SfMtZ549hkpTL0Jn1LRgB0TVRx+xTx6uk2n7KUhtHyByce03XEvZXQ8vYyhloInpXw0u7WJ+yVq3auRoCKg0X+qm3CQfnVpv0KbNAEXx5rwbQpF+NCTlk5LQFiznGoLM X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 14683b78-df58-482d-bf37-08d579e3267f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(4608076)(2017052603307)(7153060); SRVR:AM0PR0402MB3331; X-Microsoft-Exchange-Diagn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zKxbBr2YFEWaFW/rIs/2hj7UuRacMcWqnMUyzKMr0uRGGqmQ61cnETjwgv+qCMhXG9SWvxAw4RDFqLSfI0JBHj6NvCBTMoN7glhNvhd9PRf82W6/0794pdO9GHMoD6cMRI3v8kv3jS5xrsfC4wHSIgUqsXvZhXZsqsVX5D/wOGoWv/PQD1YUGJ2UmXJsKVboHeKC6piGP1Bu7RcFjSlzhVgGJCX5JMxtD+uhzLwD4BRfVY4/8xgrcRo8Tsty/3zkVYH/zkXLosi4IuZKLQn/Fnv5bhzjXiadv9kMnyidXS0SRlouugDhXKVH4l6hZ2DPCP+phnCZXDjP1mlPNsHSGcDUzDGLMbHuVjLzMcZ0zakIeV5FSjliSnewMxH+of5SskPQaBtAMw5vMqKVTaLv2NVBLeY8nLOcgdDKw/xFqlx1CrxGF9zy6AZDSKk9raxWM3YiU+H/DY0B7GCNzNmQhqFZKE X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(3231101)(944501161)(93006095)(93004095)(10201501046)(3002001)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(20161123560045)(6072148)(201708071742011); SRVR:AM0PR0402MB3331; BCL:0; PCL:0; RULEID:; SRVR:AM0PR0402MB3331; X-Microsoft-Exchange-Diagnostics: 1; AM0PR0402MB3331; 4:kq0Yh74nq0WCVMxYxyfUqptUSpKR/5pmREUjli+JfDI4GKldrCZ6t0nnSDWohW3UpUgXhnIy/huEbjF7968rM3n/GvJ3wcwrWqKBuTWo2BPbvMWLPpX7Sht17rW+BdNm18oc4PRAPhhopylsaNVHYe9xx6R6niIMem5HTtlMMmX1O7nX1BlonwRUD18ezrUydRtB5zf9NVILsGGxgBzQ7kHw3y9x+IX6LHG8DYhg/ynDcav7ETAHmyPw+KoojMEsYFOJy6MZzz4zJZsQ9WpAHg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o2FAgjddF9L SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Teleste.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Feb 2018 10:58:05.0267 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 14683b78-df58-482d-bf37-08d579e3267f X-MS-Exchange-CrossTenant-Id: 0a3a6402-5c43-4939-8e53-47a694177b24 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0a3a6402-5c43-4939-8e53-47a694177b24; Ip=[212.213.19.238]; Helo=[FRAX.twin.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0402MB3331 X-Original-Sender: sami.hartikainen@teleste.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@Teleste.onmicrosoft.com header.s=selector1-Teleste-com header.b=pFR4rMsC; spf=pass (google.com: domain of sami.hartikainen@teleste.com designates 40.107.1.69 as permitted sender) smtp.mailfrom=Sami.Hartikainen@teleste.com 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: , Initialize the 'bootscripts' list of the internal database, and consider filenames listed in it when scanning the cpio archive. Signed-off-by: Sami Hartikainen Acked-by: Stefano Babic --- core/cpio_utils.c | 2 ++ core/swupdate.c | 1 + 2 files changed, 3 insertions(+) diff --git a/core/cpio_utils.c b/core/cpio_utils.c index 6030b30..15c1374 100644 --- a/core/cpio_utils.c +++ b/core/cpio_utils.c @@ -651,6 +651,8 @@ int cpio_scan(int fd, struct swupdate_cfg *cfg, off_t start) file_listed, start); SEARCH_FILE(struct img_type, cfg->scripts, file_listed, start); + SEARCH_FILE(struct img_type, cfg->bootscripts, + file_listed, start); TRACE("Found file:\n\tfilename %s\n\tsize %lu\n\t%s\n", fdh.filename, diff --git a/core/swupdate.c b/core/swupdate.c index 430bb96..ed0e563 100644 --- a/core/swupdate.c +++ b/core/swupdate.c @@ -427,6 +427,7 @@ static void swupdate_init(struct swupdate_cfg *sw) LIST_INIT(&sw->images); LIST_INIT(&sw->hardware); LIST_INIT(&sw->scripts); + LIST_INIT(&sw->bootscripts); LIST_INIT(&sw->bootloader); LIST_INIT(&sw->extprocs);