From patchwork Fri Dec 24 01:07:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dominique MARTINET X-Patchwork-Id: 1572881 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20210112 header.b=blGCpfe8; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::73d; helo=mail-qk1-x73d.google.com; envelope-from=swupdate+bncbcwivbv7sugrbw52sshamgqezow7v6a@googlegroups.com; receiver=) Received: from mail-qk1-x73d.google.com (mail-qk1-x73d.google.com [IPv6:2607:f8b0:4864:20::73d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JKpnv1fHnz9s1l for ; Fri, 24 Dec 2021 12:07:45 +1100 (AEDT) Received: by mail-qk1-x73d.google.com with SMTP id bs14-20020a05620a470e00b0046b1e29f53csf5640372qkb.0 for ; Thu, 23 Dec 2021 17:07:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1640308060; cv=pass; d=google.com; s=arc-20160816; b=f6tQ5fGnP+vSVt+Apmm3BfLNeDHH5G0pgxDfEjJIry5aXqbDHZ3TAlG00pkwXIyKKi dI7loC5C/ZM2gTQ5rx2t/ydSXU08qSp++1tvV+krPg1kUf7PngtzjeBBE38yZXqWRp7l gieMC+wbBu3vF6QguAxLyrJsSVyV5XfzqLbPCdrT5JErp4jaUGt5IjAZ4mpCMCUbJj88 pQStyIZoZ7sUm//ERTdoZsAGgBwZe29Nl0uVTL/b8465haSzrHZIVTbwMuqN0EgX5UIT ADvVyOXxOF5jzxorysNOXO55lfHKOwQUXxWJSdOghH+PUOZR763XgQDYdx/Fl5p4GGmg eLLA== 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:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=1uXUFmSRUmyogMIsq4cNHTgXkIb05xloIohpT8Ozk30=; b=EOdd0UwJDlAZqIIwX2sArTefrng8HvzIqFbloBvNPlubJJoRAiCJNTK35Wlt0bk/OQ cptEW2k30K+iLHYjNekp5aKSkYM20kRwa7FyqGSIYcehTxwGIKbkWE2/ay6ouCXebOfy 5WDYKb9Y2btP3i98gk9i+GiRSJCbrpK4yViiYbJ+KRxN/5Y2j44Su3M1jCMaRYzYyLrN m1TJuYduxvUC7tMCiHX3Dg0gElqMdxTTCoW1GIxPXrpTD/C/G9LqrR/G8kttP5yWepDe abXka2HdcaH6jC9SYfzNpvNR+cfdsLZNsPItq9TjzguAE+xzQecFBOWQiYyZGvxzMrq+ OOvw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of dominique.martinet@atmark-techno.com designates 35.74.137.57 as permitted sender) smtp.mailfrom=dominique.martinet@atmark-techno.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=1uXUFmSRUmyogMIsq4cNHTgXkIb05xloIohpT8Ozk30=; b=blGCpfe89N+YeHMOEkgFMUZ2oUYUUQoeGyrsOAHTpJUjrO0qaeaKte0TrK0Gk/2qJu /MsmBl9uThWd1n8KucjNDDQOjbpgeENtDpd95HDq5Fvc5+854kNYP8XIwb6AaVKkDOcZ jDc/cBg6OEjVPpeVggcD66PBzKXmrYIjYgj7W3PpP0VgdkIGYBBzkAcZ02afK7CIEM+z baj3byGiFrjn7pr8dhRfzvXIQhd2E3Jjjq3Po/kQ535oNLgRN3AH8A+NJ+s4DaptI2Mp t6oZLzLTzFka693fSVpqNbXHrEdYcmQla7mA3jM2da4L0TiYTrZdCbf6RNDCJNJwwm2l xo0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :mime-version: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=1uXUFmSRUmyogMIsq4cNHTgXkIb05xloIohpT8Ozk30=; b=hfoBCGHvtpFE3MuSepFV/M0Uj6AN1zpqeMN4FCuR95KBplR+HRZYsYNuNubwxxvWxA J+O4gQ+VBbUhaQx2iUHj1FCzwOwtkUUms+xDukhFMMqiJK3qLjMKZfJrhGOhWD0has3O DyS5u+q5FGCvxJyusVyV6mz7uL+jfj5CRJDOErnktDdOh0e7Tj3sgmc91oorNHWAoO57 jkf/naUrAINKzAc5FWMTBuVSphGPb+vhyBesjT9b95KSUiaY2Vjm6mWJY3Vtteq+0YZC GLOlsT1Q9tVHJahSUhBVaRMjShhbbodwz4lGGYuYDDm4WsC68wIFBxRLahbnoHBWQobF aKdw== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM531899yYqUHWZuNckp+intxEACAGjXKUd+9mlsZ7sT8PFRseKF9c zz6XwDW3XLvjJO/Lv6UFaRc= X-Google-Smtp-Source: ABdhPJzfbci2h5Of5ZKdK9uRCzoJunHNY9MuMpmzijXUI909Gzi+U/Tij4WTlM7Da3N0PjOSF4enTA== X-Received: by 2002:ac8:7009:: with SMTP id x9mr3956060qtm.420.1640308060037; Thu, 23 Dec 2021 17:07:40 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:ac8:7d47:: with SMTP id h7ls3577217qtb.6.gmail; Thu, 23 Dec 2021 17:07:39 -0800 (PST) X-Received: by 2002:ac8:5dd0:: with SMTP id e16mr3908261qtx.563.1640308059467; Thu, 23 Dec 2021 17:07:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1640308059; cv=none; d=google.com; s=arc-20160816; b=QQUU39yvAkvlKV4ebteX8vS1E/YeCF6dEx0tyotpYGfZu7Czgz/thbwXWlN1SsYsjs GZP45lmnhDwUFAM+XrP9E9N7izzt3gpmOfQ4qbe7jnK0qaY1kmwbzFKK2qMeJbAUwoL/ 9hqiJ+Munjr0gF2A7HGRq69XyDbGQ0+TkUY8J4237dQqFI8GWRf0IP25od1LK4nNJQxH KKc89kWG9DGwMINO0cK4KHdlSWoLJTYBLgDZvAiB3++6VIjqHWxFx7/LfLsAXP9mMyMY d9o4ZgFvaq9xsdZS6kI09mJBUa2ioohu6o1O7TS0VVeViB8ubqaNAiEDFY/RF30d/DWq YA0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from; bh=d9C1cr0GAKEMaXXejAojuaQ67XnvSCrs6lHqu6Q86OQ=; b=0g4L7JlLpERukDeaLPsdPZ0uXg9XIgLg9Vt6QOMr4WQiPtuyLlMD8j5nq+YHWHMI4j 4UnNMh9CD0umZiI+yvJdAQuHcB8erxuVbuJftLVJIZwUgys5pijppHn6NG0rjKfiwUTa P6Mio2gwpi/33Hb6uFU6G94avb6o8KjY9k+Uk06Fb2fqOD6biiqLhS1UfcYSQHVi9tjd mowOMR2qjPsmKQk9XLhKLKBS2hlXIWVq0RZELpjWyNEJFLYwV7p+JXqFszk9zA3N01/t wO2icGHX52qJpOOMTKE8yjYA1sccWkQm/SZpjujT/Qv9iAKbS/1c78wYJEQD4z2KDuKw kPOw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of dominique.martinet@atmark-techno.com designates 35.74.137.57 as permitted sender) smtp.mailfrom=dominique.martinet@atmark-techno.com Received: from gw2.atmark-techno.com (gw2.atmark-techno.com. [35.74.137.57]) by gmr-mx.google.com with ESMTP id f23si1108362qkg.1.2021.12.23.17.07.38 for ; Thu, 23 Dec 2021 17:07:39 -0800 (PST) Received-SPF: pass (google.com: domain of dominique.martinet@atmark-techno.com designates 35.74.137.57 as permitted sender) client-ip=35.74.137.57; Received: from gw2.atmark-techno.com (localhost [127.0.0.1]) by gw2.atmark-techno.com (Postfix) with ESMTP id 39AD020D51 for ; Fri, 24 Dec 2021 10:07:37 +0900 (JST) Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by gw2.atmark-techno.com (Postfix) with ESMTPS id 27DDA20D51 for ; Fri, 24 Dec 2021 10:07:37 +0900 (JST) Received: by mail-pj1-f70.google.com with SMTP id p2-20020a17090a2c4200b001b1866beecbso6606311pjm.5 for ; Thu, 23 Dec 2021 17:07:37 -0800 (PST) X-Received: by 2002:a17:902:b408:b0:148:aaf2:ea81 with SMTP id x8-20020a170902b40800b00148aaf2ea81mr4577881plr.123.1640308056288; Thu, 23 Dec 2021 17:07:36 -0800 (PST) X-Received: by 2002:a17:902:b408:b0:148:aaf2:ea81 with SMTP id x8-20020a170902b40800b00148aaf2ea81mr4577871plr.123.1640308056100; Thu, 23 Dec 2021 17:07:36 -0800 (PST) Received: from pc-0115 (35.112.198.104.bc.googleusercontent.com. [104.198.112.35]) by smtp.gmail.com with ESMTPSA id c13sm7400097pfv.20.2021.12.23.17.07.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Dec 2021 17:07:35 -0800 (PST) Received: from martinet by pc-0115 with local (Exim 4.95) (envelope-from ) id 1n0Z3W-00ANGf-Ix; Fri, 24 Dec 2021 10:07:34 +0900 From: Dominique Martinet To: swupdate@googlegroups.com Cc: Dominique Martinet Subject: [swupdate] [PATCH] doc: archive handler: document create-destination prop Date: Fri, 24 Dec 2021 10:07:32 +0900 Message-Id: <20211224010732.2472712-1-dominique.martinet@atmark-techno.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-Original-Sender: dominique.martinet@atmark-techno.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of dominique.martinet@atmark-techno.com designates 35.74.137.57 as permitted sender) smtp.mailfrom=dominique.martinet@atmark-techno.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: , Signed-off-by: Dominique Martinet --- I had missed this property when adding the section earlier, and just found about it now as I needed it. (I was surprised that preserve-attributes is not a property actually, but now it's here I assume it must be kept for backwards compatibility) I don't think I forgot anything else this time! doc/source/handlers.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/source/handlers.rst b/doc/source/handlers.rst index dc52cbbe2a69..333c912142e9 100644 --- a/doc/source/handlers.rst +++ b/doc/source/handlers.rst @@ -791,6 +791,9 @@ itself has no direct support for xz it can be possible to extract tar.xz files w The attribute `preserve-attributes` must be set to preserve timestamps. uid/gid (numeric), permissions (except +x, always preserved) and extended attributes. +The property `create-destination` can be set to the string `true` to have swupdate create +the destination path before extraction. + :: files: ( @@ -800,6 +803,9 @@ permissions (except +x, always preserved) and extended attributes. path = "/extract/here"; preserve-attributes = true; installed-directly = true; + properties: { + create-destination = "true"; + } } );