From patchwork Wed Nov 3 09:20:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 1550187 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=cuqi4W2I; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::53c; helo=mail-ed1-x53c.google.com; envelope-from=swupdate+bncbcxploxj6ikrbu5irggamgqezqrsv5i@googlegroups.com; receiver=) Received: from mail-ed1-x53c.google.com (mail-ed1-x53c.google.com [IPv6:2a00:1450:4864:20::53c]) (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 4Hkh7w5ZJnz9sRN for ; Wed, 3 Nov 2021 20:20:27 +1100 (AEDT) Received: by mail-ed1-x53c.google.com with SMTP id u10-20020a50d94a000000b003dc51565894sf1825852edj.21 for ; Wed, 03 Nov 2021 02:20:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1635931219; cv=pass; d=google.com; s=arc-20160816; b=YUCLBEtRzgePO8hLbpNkIrFeZptDr4jXVLT4P4OzBzRZxwbgtOTfUo9M1bJKGAfni0 nPfczKqkCKaGsUijVTVTq7YTn9Jsbzr7yTQh2vABJGUMbU4AT1NjIHOro+x/qbbCZ+7i rfi9TZndM3GmxkNMh+JjD8BrZbcw+KHJYHuoObUySxSd6sjQMfGsHRk1509VHDVzeEup R6RKAuNdM+ZNtOrnYv8etKw8D604bgecxyOpclkKm5eRodteIuxg+VeAohKojPmA1CU/ YUp7FDzKqWx+6YQCsXH/XvjnDibhLv2/z5mNOhyNbjIXWF8avPloQ209To2wYH6N09Py Edtg== 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=2ySlgsKdKgo6pfyBmZulSyQm2tqOmLgRwV6Zqb9g578=; b=z6wBuw7vOoNYkcP7QeD1OHEBTgQHZEruWNV2pEPO3qbPFo4XlrlC4lyAP7z7velLn1 agCA/Vf87KABY+AC2ICJwKPLe3bgKexPpvJUiZvVEYCamhxIM1CobETPzUfwFWodg4sF cRiCkZgNIEgvXcgpzoEPZwJdhe8T1T89ihznwNy+cJM9JfJJjuwhP2wt1Bh5JqiHo8wq 5nNWZMfCxJ1TsHq72swKTmdPLGWZfgT9PD6e2eb/E+wIHGuy5MDqF43SbfKCC80DPAd4 MChthMcmAaetcYzZnjXkGOcEsSk/2IAIlK1WgDqpD6AX+h/SZZL6smh0oYHkyL/S5f7v FJHA== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de 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=2ySlgsKdKgo6pfyBmZulSyQm2tqOmLgRwV6Zqb9g578=; b=cuqi4W2IFnQyKux2BWXesnmeA5p6O4H7V0FaqbY1jEB/4p870WmExVzCTGWPh3bDEM vQCNnlZcloMy/Vt6/re8bdsfltRvUpPkQC1785ujeXt7b3Vy1YjPBMZETrketIu7jlsa OPJZmb+5kjD75hpfe30nDuCIiK4Hmc5tVQjIJfAfwmhCjJm7Qa3u6utOilxlhrl8udF6 mnykwK+fLogHRcn9At4mD48UeiupIgR27a0ULTydv7F3+13VYqt3TOaeqrwR9apj5npG guF5j6yvkvNP+mmzyo+73V/UZG9u/qiUVzc7mlXb15AfdJ7ll+iNzNIMZ/D9kS3YBY4E +VzQ== 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=2ySlgsKdKgo6pfyBmZulSyQm2tqOmLgRwV6Zqb9g578=; b=3NFpKlgwLscEP/t/VkCKM/AzHFxSEOSfFmnXQfvoncPf+Nm+K3mPjOoN+TAvjhxSEX AiZ8WWPbtkQ5x8EijsADSw3FqwC4/eA6GME0UuLWM91UxGN79UFexGzSFQ7eEoUZE8LD Bmj6Uipeyobfw+IbCoBeXDyzqwcJzCAAEwRC5YbAA4s5ECRZpIwFY5zEwH+3dkPZWE8j xS55EsTLTvPTQM8zsqU13UQtJ23F0OQDd2HqjH8r4tjpYPo5quuaeKLRVv7a8htk9LL7 tVmnp1VUbI7FcdJOZPB0xw1LNC/CMq+y+k6sMdxsVbVQAJM99cRef5UA7nfUoupRTTn4 LWVA== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM532LFRtKcJiS86cOtpMX3WJyyCUpImGL0KFGZjeLV+ezphlBi8f2 Jecb5VZvWGij3IURSlz3mJE= X-Google-Smtp-Source: ABdhPJwM7nT7KQWiL1VaQyzKO9K7/Cme7ouP07R2cf1diwkMswpx4dxbnZjJiDkTFkjcuFCTKWqM4g== X-Received: by 2002:a17:906:a8c:: with SMTP id y12mr30628520ejf.385.1635931219535; Wed, 03 Nov 2021 02:20:19 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:aa7:c0d9:: with SMTP id j25ls1701862edp.3.gmail; Wed, 03 Nov 2021 02:20:18 -0700 (PDT) X-Received: by 2002:aa7:ccc1:: with SMTP id y1mr59759428edt.177.1635931218715; Wed, 03 Nov 2021 02:20:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635931218; cv=none; d=google.com; s=arc-20160816; b=vcYmCeKP1G/WV79rnwH4iWg7wCiFsKQj5TZxEUxPPrJKd4xjso2ZKFNuyXvs228oi5 bDIkzWiFCw8zg4xi8Bb3pXNZ0yRpGU2JadUnBZmOXxxR97Pw7BP5z2t/8t+EW9NLA0oD Weemo1G5wZUAfRobn+FZmCGs7x6zB81xNOf0Q7dr4SyxNX3sQufWCYSH8nhyxVfclTzl t0SkUWxrFkOsN6f1MFHeQGW1fBm3s/glwRRzsF5MlIslkmIshD9aprIcQlbcvBJeXlPR yA9zC2gltQLzgaGTql+FevQe2fd3OleujGdpDFfiA9FwTnNSep3NqX/Uc4IlyQhsqjpE Up5A== 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=7GUtuwgvBCTBBv3au8/EYdLzhbNtmtgJRdyaJG/OmoY=; b=O8X5ArSj/MhlvAHYwywxZrZ+0b+ANxKwqbwZjVb2DbL2U9zLQ0LMr4xNPNu+qw7R33 9Q0AhTkd7ITQWvgdp5kPpcGnZTr6rqQwUBDf000DZ3PfIWHV6joiwlDSNbRga6gLCyF1 loRPy9Abxmar+eLGoBZuqgclQf/GJnxsq5yMRiZrbAoBiDCKjfPpQs/azJoi+4C7t7fy v8+xv5YQi3YwMfksXE38GTQPjTo1GT0l7Ze2tZRRiWcO94RvrUoOxx78vbeScR05G9FD 6vYdqiUj8jbw6QOc84TGiDp1BdPf3nKbGFwBJ2J8NyBf65S2a7KtpmRz7PbNdzIOWXht /J6w== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.10]) by gmr-mx.google.com with ESMTPS id dr8si232433ejc.0.2021.11.03.02.20.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Nov 2021 02:20:18 -0700 (PDT) Received-SPF: neutral (google.com: 212.18.0.10 is neither permitted nor denied by domain of sbabic@denx.de) client-ip=212.18.0.10; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Hkh7k3D1Lz1rk5q; Wed, 3 Nov 2021 10:20:18 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Hkh7k2Vw4z1qqkH; Wed, 3 Nov 2021 10:20:18 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id eVbjbEAiT66I; Wed, 3 Nov 2021 10:20:17 +0100 (CET) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Wed, 3 Nov 2021 10:20:16 +0100 (CET) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id 345CC45411A8; Wed, 3 Nov 2021 10:20:16 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([127.0.0.1]) by localhost (mail.babic.homelinux.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QDWHEJxq2Ux5; Wed, 3 Nov 2021 10:20:12 +0100 (CET) Received: from paperino.fritz.box (paperino.fritz.box [192.168.178.48]) by babic.homelinux.org (Postfix) with ESMTP id 8597745403AF; Wed, 3 Nov 2021 10:20:12 +0100 (CET) From: Stefano Babic To: swupdate@googlegroups.com Cc: Stefano Babic Subject: [swupdate] [PATCH] doc: add missing doc for rawcopy handler Date: Wed, 3 Nov 2021 10:20:09 +0100 Message-Id: <20211103092009.1793493-1-sbabic@denx.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.10 is neither permitted nor denied by domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de 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: Stefano Babic --- doc/source/handlers.rst | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/doc/source/handlers.rst b/doc/source/handlers.rst index 6a08ad73..723c1106 100644 --- a/doc/source/handlers.rst +++ b/doc/source/handlers.rst @@ -760,6 +760,27 @@ Properties ``size`` and ``offset`` are optional, all the other properties are ma | | | If not set, default value 0 will be used. | +-------------+----------+----------------------------------------------------+ + +Rawcopy handler +--------------- + +The rawcopy handler copies one source to a destination. It can be used to copy configuration data, +or parts that should be taken by the current installation. It requires just one property (`copyfrom`), while +device contains the destination path. The handler performs a byte copy, and it does not matter which is +the source - it can be a file or a partition. + + +:: + + scripts : ( + { + device = "/dev/mmcblk2p1"; + type = "rawcopy"; + properties : { + copyfrom = "/dev/mmcblk2p2"; + } + } + Disk partitioner ----------------