Message ID | 20230106131106.3266668-1-roberto.foglietta@linuxteam.org |
---|---|
State | Superseded, archived |
Headers | show
Return-Path: <isar-users+bncBD74TYH44AKRB5F34COQMGQEXT35M2Q@googlegroups.com> Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 06 Jan 2023 14:11:26 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-yw1-f185.google.com (mail-yw1-f185.google.com [209.85.128.185]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 306DBLli012555 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 6 Jan 2023 14:11:22 +0100 Received: by mail-yw1-f185.google.com with SMTP id 00721157ae682-4bdeb1bbeafsf17485737b3.4; Fri, 06 Jan 2023 05:11:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1673010676; cv=pass; d=google.com; s=arc-20160816; b=ervmE7n/f9LoxBFN4osRkSbUlq0aPN41C/MlrPmeWVHG4ZFgGQhPSb/o6o5yVRvXMh kFq1eI5HyGB0BrZ/tGo/Cv/qpkUhffqU5e3IDHIu5pRYA0JqEJ3lSmCEU1X7yH3ouRd6 AuriSGjyOFDZ2UWOCP+5UiLl+llEWwJBg8D3FHDDAxfdGK8/gPWktISxQCSkOMFz73P6 FPMJU6N7XlBOvicQoqjD6L97SOBNWQ+0t61IfVTZ8gevggDVkGjv0BLcSWrfA3X0nIjI uMtmr88Bg94XM56CIuDNyPHpVmHPGogNaVwbeBThGVwTetCREl4X4o/RaIhkTX2d79Jj JrIw== 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=rPo8kx4Pg/qliSa1qyrUTZMIKq3g6T+ce7MsxN6oc98=; b=GQ0fFPUZR8FtCNlTVunTx3ypGXgJnz8JtTtTVg8cOOYl7uwHRfIXMCfeJS1Pf61xAx ZG+dVQdlq5H5tsZpEphK2MB0kUnLpWCL8KwrWgsoyKgDFUWvqSeIl/XPaZ9fRt4sZr0u UJCC56l2BiE0gWzwlUhCmDlsWowljj3XoICTInNEISKzlD6TbdsJEAu+ovEJhyNnhJn0 pgGNF2nAmtRWDmj4KCjP/Eua3pM0Z3LtKRnYDfexKtfRos9F+kyWCASWwatbz5rjvJKj 6CMruWL2lA87vVVF2Afy5sFm1KyGaIG7Xhhn0R10RSSBPwmaBfzHe97Zh7ZlTXenWS9J l/3Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of roberto.foglietta@linuxteam.org designates 5.144.164.164 as permitted sender) smtp.mailfrom=roberto.foglietta@linuxteam.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :sender:from:to:cc:subject:date:message-id:reply-to; bh=rPo8kx4Pg/qliSa1qyrUTZMIKq3g6T+ce7MsxN6oc98=; b=prQmQf71KPqNnjM60wqxMnbwhlBbx8KcdSt8RXHbYq0mqEIlyjkHqado25B+eWPzwM yVXMuMU9pPLiGtiJgQeRxxWhNJOs3BR5QuAlSYByEjYGnhz3bk2Bxiuv1GZMm1HFW3Iq GSsI88NAVORXngf9xvtikY6d4r+pZxRnf/TJfdwc+UMNan7y1lly36pYHCbF2+AHnWi3 2I0Fg7yUYkJkbJT8bhlkaAkvqHmG5YQ/McWJnvDQ8zhlXjCc1ScYaukeTBu0MTfhIWBa 5GRpNvQzs0Bo8QK7xfHb3ZxscXQ49IV6H1VSbiBp09s9+b8bDE/wl8vTEYs8zoNbchjW Uj5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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:mime-version :message-id:date:subject:cc:to:from:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=rPo8kx4Pg/qliSa1qyrUTZMIKq3g6T+ce7MsxN6oc98=; b=WsZoSW2p7/LwOkRAEfjnSSaL9hcf+9Q9BxLTXpmwrXOqQXn3b4JUl0Lqeu6V8au0XK tsOn0UGHY3vw2CrxUDiomcd/hmCE9OZZ1ad80ai2D02Jwh81AhK8tgJpbTRYw73eVlka 9Qox4WJoMEzR84UnFbevGbbyLiaQ6FQw0t7jmYmR7F34MTUI41T9pKnKTkUm5SgdYRlX IJzp6no4jhXeKi/u5zLiWvrmlGPPFPpYQw2yG1Ra1+SqXhJ7WnhVAIVuNJBrYSoinND5 STNt6VsPc2PO94AcWDMp7SuJ534Ypw2lvH1DGGAWmnxrGyfE1rRK1LLesgx7THupXLN+ ImoQ== Sender: isar-users@googlegroups.com X-Gm-Message-State: AFqh2krugpyKw/7iEPNcSlLk6wGYP24e6O5K3fIHDiaudbYYAu6pOXQB Wf/rvSzKcLL7scTVtXdRsWc= X-Google-Smtp-Source: AMrXdXvI8MgsuGyxWBnhtU9KgiWmK7zkwqLjf4xF0vMJx7N3iHCP2RPPIVbVt8NadQHgi4nLvLAMyw== X-Received: by 2002:a25:bc43:0:b0:7b2:343d:6b11 with SMTP id d3-20020a25bc43000000b007b2343d6b11mr1251185ybk.75.1673010676461; Fri, 06 Jan 2023 05:11:16 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:690c:d81:b0:3fe:c52c:dd9a with SMTP id da1-20020a05690c0d8100b003fec52cdd9als1047439ywb.4.-pod-prod-gmail; Fri, 06 Jan 2023 05:11:15 -0800 (PST) X-Received: by 2002:a05:7500:69d:b0:ed:eb8c:d912 with SMTP id bv29-20020a057500069d00b000edeb8cd912mr2913976gab.22.1673010675633; Fri, 06 Jan 2023 05:11:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673010675; cv=none; d=google.com; s=arc-20160816; b=ly56LLbY76tCftThhLTvTPnxSG1jGEEKxcWA9JijaPLhxDL1EQhwTv4X1NFME1282p gVcuKehhh2NKeN6cK6QphZBkcjnJ+BGdf4CBbTWXbzWd7IJLp8sxx0wPSJbm7qTg+fZt 8ErVcTsS7rTFR49Dija4I+sjggY1UIlB/vfL1Mh0DgzQC0dFNyc4SB8Nea+QV6JL2kl/ IxLNFee8tF7muIWl37gXXlSLFmfWvlNQ+GiOBzKPh0RnUKuyUm5s2yDmfmx2dMB26UD5 HXoIzYGrYMDI/04Ax/F5pB5kgeIkXp+q8gKE+z0qQEOmHDds/aHeSLCeWnpFFXHXhvEg Mj1A== 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=0eCFW4UWXkHKVT1UOZb1SymjNy9VqO2lZuPAULSTaOQ=; b=ZspDX/sQ/5ej9wc61m/SHm3moIOtV44Z8P0DS2lIBNhqCxeyoeV4KJZhOdKWIc/MUg 4GHNbmsjgLFGhmMaIXqlfRcYnVoLUG00oTD865c2NTaKGGjjzw8dhM6h32EOeiBYcV4t qBGLy73HBFwc7+1wELuBpTzSYpfLW5ewUUTiMIDa+ncUrzE1Re8FeKmF34kveJmpklOa K5KiAnDkMWGaVC9r1mtUp0ZAXljBi6UsNEEhgEUW1Gownm6IAMy5JlDGdLv/L8JxzDZl pXk51KbnLfv/2l2ms41QJ5sGs3+8WqJzuC203FY/uWyAWxp26WKj/aiSR5pQZQUbX1XN eRLA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of roberto.foglietta@linuxteam.org designates 5.144.164.164 as permitted sender) smtp.mailfrom=roberto.foglietta@linuxteam.org Received: from relay03.th.seeweb.it (relay03.th.seeweb.it. [5.144.164.164]) by gmr-mx.google.com with ESMTPS id c19-20020ab06ed3000000b00414ee53149csi123698uav.1.2023.01.06.05.11.15 for <isar-users@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Jan 2023 05:11:15 -0800 (PST) Received-SPF: pass (google.com: domain of roberto.foglietta@linuxteam.org designates 5.144.164.164 as permitted sender) client-ip=5.144.164.164; Received: from localhost.localdomain (unknown [IPv6:2a02:8071:3187:7b80:1035:7147:9529:4b60]) by m-r1.th.seeweb.it (Postfix) with ESMTPA id 5E49F1F68E; Fri, 6 Jan 2023 14:11:13 +0100 (CET) From: roberto.foglietta@linuxteam.org To: isar-users@googlegroups.com Cc: roberto.foglietta@gmail.com Subject: [PATCH v2] image: make sure do_rootfs_finalize can run multiple times, v2 Date: Fri, 6 Jan 2023 14:11:06 +0100 Message-Id: <20230106131106.3266668-1-roberto.foglietta@linuxteam.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Original-Sender: roberto.foglietta@linuxteam.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of roberto.foglietta@linuxteam.org designates 5.144.164.164 as permitted sender) smtp.mailfrom=roberto.foglietta@linuxteam.org Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: <isar-users.googlegroups.com> X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: <https://groups.google.com/group/isar-users/post>, <mailto:isar-users@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:isar-users+help@googlegroups.com> List-Archive: <https://groups.google.com/group/isar-users List-Subscribe: <https://groups.google.com/group/isar-users/subscribe>, <mailto:isar-users+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+914930254986+unsubscribe@googlegroups.com>, <https://groups.google.com/group/isar-users/subscribe> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= |
Series |
[v2] image: make sure do_rootfs_finalize can run multiple times, v2
|
expand
|
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 629a0c1..b7a7900 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -424,10 +424,8 @@ do_rootfs_finalize() { rm -f "${ROOTFSDIR}/etc/apt/sources.list.d/base-apt.list" rm -f "${ROOTFSDIR}/etc/apt/apt.conf.d/50isar" - mv "${ROOTFSDIR}/etc/apt/sources-list" \ - "${ROOTFSDIR}/etc/apt/sources.list.d/bootstrap.list" - - rm -f "${ROOTFSDIR}/etc/apt/sources-list" + mv -f "${ROOTFSDIR}/etc/apt/sources-list" \ + "${ROOTFSDIR}/etc/apt/sources.list.d/bootstrap.list" || : EOSUDO } addtask rootfs_finalize before do_rootfs after do_rootfs_postprocess