From patchwork Tue Mar 1 00:05:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1599255 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=t9zUfGoK; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=BhO2GRj0; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::f3b; helo=mail-qv1-xf3b.google.com; envelope-from=swupdate+bncbdulzynr2qmrbugg6wiamgqe3hjv7ri@googlegroups.com; receiver=) Received: from mail-qv1-xf3b.google.com (mail-qv1-xf3b.google.com [IPv6:2607:f8b0:4864:20::f3b]) (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 4K7FKb5Ns1z9s5B for ; Tue, 1 Mar 2022 22:25:23 +1100 (AEDT) Received: by mail-qv1-xf3b.google.com with SMTP id q14-20020a0cf5ce000000b004326eec23acsf14856083qvm.20 for ; Tue, 01 Mar 2022 03:25:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1646133920; cv=pass; d=google.com; s=arc-20160816; b=vVrGfiN8fCbqy6Eyd85X/O2qX5JBwQPy+O8ygO4l4RptSjv+Ui6eKaFLsm51P0Uh2R dixmIzRz6o7xjvNuTasUkx9q6pVSxWH6Gu9f4zbYBNGIqVNYNF0CwsG9PgYv1/Tw8NcJ I4VW4Z1PJ5Mv8eCPlkEnifI52fMWZP/MTAFGB2NbXDsOSvc8x2uZUFWH9/ZsfoEOkGvh HipzP5IpOKGAjHTuWzlgyOF3b5SOEzNy3bwPQ4B4iTqyJKQ9V2zaR7WZK7IiUsueg1CP P4HM+hf2t+A6eBAg7XQVgdKRfFpzBnT6W2FzYPe1VpeemDpQi9GjdR2KjTc5lyyuuQPf pQTA== 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:dkim-signature; bh=X5UYjW9en2TK2x8UaZTget4hdCeo/FSLswAqvQS8Nes=; b=Wn7Y6gsh3ApHXY8/Gxe/cMDXi+ZuuB3dk8+YuyT7kzWx1sW6xT5UlBJ886SrItTxSe vlYT4niFyKgZuj3uGnTWVSYfok5a9bMbnpUNYNcIINFQTuwq9tQrrdlrlchwAoCp4mXK rydXPxqv/+zyeA89wR4v3S3XHK3JaNr62XJmhZ5XTOrZh7hP1PfHaRn3jQOPTd6NzD7W igwCfEpYEnxqlxDZKeNtQ1XdAA4gMveAg28XKIAZpFedfQ2GDvajpizlDZd4Qx7nNARf S3PBPuNbzr/nBR3yukbKr+Gba9MK/7hMc9bSXKA0ByonHbY+A0cAXbzxzsbsRPzj+DcS poGg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bdnZHsi3; spf=pass (google.com: domain of festevam@gmail.com designates 2607:f8b0:4864:20::c2c as permitted sender) smtp.mailfrom=festevam@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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=X5UYjW9en2TK2x8UaZTget4hdCeo/FSLswAqvQS8Nes=; b=t9zUfGoKPgdM9Niql5ttciW7/q/k8k8Ja2pjHFLN9Ghn6vVQmwTG5fSSdfqfohYUob tK0U4MVCpn7JCxKo8KRQ5QduX1gxSrCdU5tmNPRt0M0u3QQ3BFmlIiLVUdkx01+yRSGn XEJxju68l9ccpDLkw4xIZ7hykM+ios9PkK4fOd1zYUVvmClegHjtolPpdiAWxhcJZBL5 4IaZqdN/L71fXG8FyFXYQ8MRVphxJSec+M+7Llxyk2bbbNKrTppfQ0m2wNTaV+OnD1oU U///EtOVb6c6G3Qp02XxBWxRGP+qDet9B3zbEbaq3qEDY6Pe92lPaoF/PRKKYcY558eE CtAA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=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=X5UYjW9en2TK2x8UaZTget4hdCeo/FSLswAqvQS8Nes=; b=BhO2GRj0NtXCwxQtCUgiCLaUQMXZ5SS1PunRRabepCyYo/HQIqV3rLmOR3QwB8r7nk qa6PYjy6p0LvPKP+2kcExLyENnRCSA1iAH+Aeb3SkXGt6AdPehpYC+VB0aRIPJAB1j/y J/g3osUotlaOxwSh9w0DwlKmvcIUjdJkxgXZGwlcKFz45lVzxmAW0DROZ1gUucDZKweX a6WG+cfs7fYLcEdnmesSig6Ah1ZzXmk7qCsafiQCswbMh6jBria15oXtGKbTt9yU9YAY vk4d3I65fpY27SikqE8awEzI+3vBP0I9bzvfp9CnXupxhleY3q8IMp7Q4MuRUrxAyLH/ GNhg== 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=X5UYjW9en2TK2x8UaZTget4hdCeo/FSLswAqvQS8Nes=; b=E81nr3fo8wwqWGDooDjCkwYTd4AqJQcHC9y0nyP3ThiT1HjAMn/9+MiPSrTCjc7KSc tXw3E7baOfZQ3usiAI4NDHHWMvBg9uRAEvcIP0ZzdLPEE4zWJZxnj54mQquhDiG/qI08 Tow2d6uWvl9g3oBF7yAMd4cYPK66Zx3T62o36r/3OJA3xM7L87dsqGHYilJWEeohpNLt 0QLyrEo5+/0wpTX7Eu/k6cK18pGuVdPfeMXEOcJ9HkMlQKOF5h8jmU9K95P8bJE7UJ1O dLdxDol30DmCTbsL2IeFF3AwE5Tod82PecRb2LFFCbV+tZc+r+bZmxnH1BQQH1SLbOwH P4dg== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM532CMm/y+zAHmKNAqeHpLb42gWPzR3y0/aP4ahAEId7KknzUU3Xm 0VqhZl4BiPMAplAM3BTuGoA= X-Google-Smtp-Source: ABdhPJwAMqjvZloOF5XdVGtreJ2Z1HzQFo1eJW8CKhiYytv6LYnQqFXG3po+2RoE9u8tau4420Ty+g== X-Received: by 2002:a37:e303:0:b0:47b:b0e1:fc3f with SMTP id y3-20020a37e303000000b0047bb0e1fc3fmr12617533qki.108.1646093136203; Mon, 28 Feb 2022 16:05:36 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a37:6211:0:b0:47e:e33a:2e0c with SMTP id w17-20020a376211000000b0047ee33a2e0cls7688502qkb.11.gmail; Mon, 28 Feb 2022 16:05:35 -0800 (PST) X-Received: by 2002:ae9:e891:0:b0:47b:a53f:5f00 with SMTP id a139-20020ae9e891000000b0047ba53f5f00mr12177382qkg.693.1646093135709; Mon, 28 Feb 2022 16:05:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646093135; cv=none; d=google.com; s=arc-20160816; b=giUz3FGGur/yBLRIRrWYZELa+/J6jgXuWjcGBEd7cGYAGnx3fHbGM0/mGPNSHJ30dK 4ZrUw0N70oSjD0gKgQnzhAlt9+7kangsTCJR3pwsiigrVwqOgoXvYhL8rWlwVUruuMjw Egl0c6T5Y+3i5x7tCTZkgAIYYzMb8aaRh1Ih4gvZO7A7IpgSGf/ipeycbHm/M4ROmdDz io5BIODJuUJPXbPWOU5JYzdBFVQUBC91wdFdhtek0Acm6MfzTLbU9K/eelWApdXjOZPX 5fvkdJrksdo/9cu7sz9ArtxVNZNP/mJ0JFwndvk2XkgLyM5h0esmrOJPubky/xtwYko5 IvnQ== 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:dkim-signature; bh=QZGI8Nv/ApJHwiBZM7iP0MVNPpw/ETbsInKShAYv7uQ=; b=IKkhO3ffT95jpBNJhq1hcAa0lX/EhqsyQ2e6qIFCtjDTiIhGhXRtOMiAlgt/XlOMJT /9gNTT6dVNuVpKLZdqDFW4tZIi9vIUCbWNL69gF5mJotNZSdZokpwVYBfRxr3FmBiGjm 4ILGyZkTbCn8UKEP1qzrFomtf/bbwov7nYE3V85UaqsmFyZV3E6j5IvsFO4N/xQLfAPr FZkE/3u9LysG1WDr48nvj1OFEF6IftcpQbmwtzvtJtOsjSw8mMIh86rj1Ml4EKSU52QB 0I4/AbLfTE5Vi9Et17u4oQlcxYg7v19q9ezl6fsJB70w72iIEvVWUmxrF3VMUQW12VM3 XDgw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bdnZHsi3; spf=pass (google.com: domain of festevam@gmail.com designates 2607:f8b0:4864:20::c2c as permitted sender) smtp.mailfrom=festevam@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-oo1-xc2c.google.com (mail-oo1-xc2c.google.com. [2607:f8b0:4864:20::c2c]) by gmr-mx.google.com with ESMTPS id l6-20020a05622a174600b002dced03ce81si723455qtk.0.2022.02.28.16.05.35 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Feb 2022 16:05:35 -0800 (PST) Received-SPF: pass (google.com: domain of festevam@gmail.com designates 2607:f8b0:4864:20::c2c as permitted sender) client-ip=2607:f8b0:4864:20::c2c; Received: by mail-oo1-xc2c.google.com with SMTP id u47-20020a4a9732000000b00316d0257de0so20799232ooi.7 for ; Mon, 28 Feb 2022 16:05:35 -0800 (PST) X-Received: by 2002:a05:6870:aa8a:b0:d6:c3ca:7e9c with SMTP id gr10-20020a056870aa8a00b000d6c3ca7e9cmr2307405oab.118.1646093134947; Mon, 28 Feb 2022 16:05:34 -0800 (PST) Received: from localhost.localdomain ([2804:14c:485:4b69:c29c:cab5:a7b4:a4ee]) by smtp.gmail.com with ESMTPSA id q4-20020a056808200400b002d51db97398sm6741151oiw.24.2022.02.28.16.05.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 16:05:34 -0800 (PST) From: Fabio Estevam To: swupdate@googlegroups.com Cc: Fabio Estevam Subject: [swupdate] [meta-swupdate-boards][PATCH] 09-swupdate-args: Use 'swupdate -g' to retrieve the rootfs Date: Mon, 28 Feb 2022 21:05:27 -0300 Message-Id: <20220301000527.765598-1-festevam@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: festevam@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bdnZHsi3; spf=pass (google.com: domain of festevam@gmail.com designates 2607:f8b0:4864:20::c2c as permitted sender) smtp.mailfrom=festevam@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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: , Use 'swupdate -g' to retrieve the rootfs as it is a simpler method. Signed-off-by: Fabio Estevam --- .../swupdate/swupdate/beaglebone-yocto/09-swupdate-args | 2 +- recipes-support/swupdate/swupdate/raspberrypi3/09-swupdate-args | 2 +- .../swupdate/swupdate/sama5d27-som1-ek-sd/09-swupdate-args | 2 +- recipes-support/swupdate/swupdate/wandboard/09-swupdate-args | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/recipes-support/swupdate/swupdate/beaglebone-yocto/09-swupdate-args b/recipes-support/swupdate/swupdate/beaglebone-yocto/09-swupdate-args index ceb4d77a6c3f..fc2fe9390a64 100644 --- a/recipes-support/swupdate/swupdate/beaglebone-yocto/09-swupdate-args +++ b/recipes-support/swupdate/swupdate/beaglebone-yocto/09-swupdate-args @@ -1,4 +1,4 @@ -rootfs=`mount | grep "on / type" | cut -d':' -f 2 | cut -d' ' -f 1` +rootfs=`swupdate -g` if [ $rootfs == '/dev/mmcblk1p2' ];then selection="-e stable,copy2" diff --git a/recipes-support/swupdate/swupdate/raspberrypi3/09-swupdate-args b/recipes-support/swupdate/swupdate/raspberrypi3/09-swupdate-args index 031d151dc57f..243aded922d4 100644 --- a/recipes-support/swupdate/swupdate/raspberrypi3/09-swupdate-args +++ b/recipes-support/swupdate/swupdate/raspberrypi3/09-swupdate-args @@ -1,4 +1,4 @@ -rootfs=`mount | grep "on / type" | cut -d':' -f 2 | cut -d' ' -f 1` +rootfs=`swupdate -g` if [ $rootfs == '/dev/mmcblk0p2' ];then selection="-e stable,copy2" diff --git a/recipes-support/swupdate/swupdate/sama5d27-som1-ek-sd/09-swupdate-args b/recipes-support/swupdate/swupdate/sama5d27-som1-ek-sd/09-swupdate-args index bca35f938541..71e708301345 100644 --- a/recipes-support/swupdate/swupdate/sama5d27-som1-ek-sd/09-swupdate-args +++ b/recipes-support/swupdate/swupdate/sama5d27-som1-ek-sd/09-swupdate-args @@ -1,4 +1,4 @@ -rootfs=`mount | grep "on / type" | cut -d':' -f 2 | cut -d' ' -f 1` +rootfs=`swupdate -g` if [ $rootfs == '/dev/mmcblk0p2' ];then selection="-e stable,copy2" diff --git a/recipes-support/swupdate/swupdate/wandboard/09-swupdate-args b/recipes-support/swupdate/swupdate/wandboard/09-swupdate-args index 0855d23696ff..4e9fecdf7222 100644 --- a/recipes-support/swupdate/swupdate/wandboard/09-swupdate-args +++ b/recipes-support/swupdate/swupdate/wandboard/09-swupdate-args @@ -1,4 +1,4 @@ -rootfs=`mount | grep "on / type" | cut -d':' -f 2 | cut -d' ' -f 1` +rootfs=`swupdate -g` if [ $rootfs == '/dev/mmcblk2p1' ];then selection="-e stable,copy2"