From patchwork Tue Oct 1 15:13:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 3839 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Tue, 01 Oct 2024 17:14:11 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-il1-f186.google.com (mail-il1-f186.google.com [209.85.166.186]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 491FE9dK014046 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 1 Oct 2024 17:14:10 +0200 Received: by mail-il1-f186.google.com with SMTP id e9e14a558f8ab-3a343860e72sf52972285ab.0 for ; Tue, 01 Oct 2024 08:14:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1727795644; cv=pass; d=google.com; s=arc-20240605; b=Ctlc3j9OA4OFXo0K3FG3pZuGBZcYzgUn3kbb36if1PY4t/8YHLo9i6hFBIR6qU0np8 HebGQh333wUEgSTFXbhIABWMElVLYw1Tkq20tgdJfYz0IhllL4zmFNN+j6pppFZrhrHB DpGz6I52RyDuqd5x19/+UbvUPXl7fGAAaBqcYc2TIQL7Jehmbctti6i+Lu4aumwlhkQE bLsnR78AdDVPzUCYK0vv1qbKSKsq8NoS8nHXoeOc9X2+qbwawYgSIenoYQOfKkWLzQQq 65CCSFUQQLhx48rVYFSQgZLvhV4MnO0q+4odO1yZohYEEY8c/tZ6Y24CpNCesKMkcTn1 73aw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:feedback-id:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LmCEAl+oFhrPjCCq0N6UvPC0U91aYaau6x3jvvIzS5g=; fh=wpIhli7oTYaDYs1WsYZoyYq4yMVxsZeeuHUS43oVPKs=; b=G5830N7XT1Dz+wNxgpNKTRC147iduhjg+6KQuCumyh8OSrulVBxXA6f9lRuP9p8UhA v3xbdq1Al1X5TSVMuj8i9J9f1gIG510mVs15NmcvY4iiRyc0Gr3WPvEr2M1F4Ei+nvUh vHP5+3OF6bYxk3rf54vlWChWRqw5yylD/ALcFyEJ6Fy6hGsxD+u4EvpxrP9cwLnnMnCz a615nI94l0NmEAWQlp+8Rt01rQ5kKsx182cXs97BwA8S2uejGIpTbP2JWxgbPb92NP6M +VZqKtgFw3xrLXMsi+bxSy+v5I3AKEErHIYRUyNCIduF3pk8yTetNXnXNVMQOU1mfnW0 ZV1g==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=hVXlQ8aB; spf=pass (google.com: domain of fm-294854-20241001151400ab5eac9ef4fea1a509-2lkc7v@rts-flowmailer.siemens.com designates 185.136.64.228 as permitted sender) smtp.mailfrom=fm-294854-20241001151400ab5eac9ef4fea1a509-2lKC7V@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1727795644; x=1728400444; darn=isar-build.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=LmCEAl+oFhrPjCCq0N6UvPC0U91aYaau6x3jvvIzS5g=; b=FlqvuN3UCLYf24ogNrfr6UvGVANO/XUTawrDWPpN6gYBLnR8jL3AU/E8pLPYHkp528 w0WnWnw4pbvYaW3nO0aCi8NQjeUZrcgyB+Ja9+Ia32/wvhOb7tOGvhCurHNGGSxxXBx9 yVZcjN0w66gwCnxwEe96ZjcW1JBIWAbWuRQLfKN5W8ai8lutyyosln3adASJqLbTAuNk vr8m0+mzQ2UrLvsp68NzN718bBycAaCevniCghj+4O+2zSSmuYOdltHnvNmlKopHHPph iIAl8GICjbgJC9iPWVoqbmEGOu79C5OJFCnykkfe4k2pIkI/otQn3a8DjsTnl7/eC5tK zaOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727795644; x=1728400444; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-beenthere:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=LmCEAl+oFhrPjCCq0N6UvPC0U91aYaau6x3jvvIzS5g=; b=eK+rOawQIKM4aQe2D8/RLGBmOK/K1uhXpCJW5LoxPsQoQgljCEAVbkE+wcXw8X8swJ 4ImThRxDFMIC8iZpWEjjs1nnNZs27HWNGdsObdKVhXG74ixeQzDiTJMaiHNtoYO1Y+qW R53A36d7kcDhcSdhsoK4voV/uo7DRWPSEnaZYgXC5ZQhhQcnjVJawEfmgUIeztuWYPhv PiS+4r582aL+7a3Df71XOWFD2iga9jYIq3Z73DZx45nrmR1x/vEbgBv8h/uMQhhjb6sM ivHeyYuaei3fwLAGKQWv0QQDSbOwTDRvWbE9SyjeWiqPjjJMHBBrw2qoS++wgs33uLx7 7vaQ== X-Forwarded-Encrypted: i=2; AJvYcCVJnz4PMh60ZgD3UKUMeyoTd+9NTegZ3ibPnwvyaQlTbaXWWDN+uhekjOV0cGgd1z5fcBIxs0g=@isar-build.org X-Gm-Message-State: AOJu0Yx70Ir+3gi6jhxaR7kCyFzjDcurk6hgm1ODW/p3Ynxn4MYTQmFo excqTo5Y2w927mS+4RXoPAPSC2ldB7pTwu6d4s2LVo4kky59vL0/ X-Google-Smtp-Source: AGHT+IH8+uuor0aMh3iWEgC8sPiESpaxAz/nyDDYFvXmCKMDGa/82Pdl3zU3YUnHF0OzTSWCVBoriA== X-Received: by 2002:a05:6e02:1d10:b0:3a0:4db0:ddbf with SMTP id e9e14a558f8ab-3a34515d316mr128098635ab.8.1727795643896; Tue, 01 Oct 2024 08:14:03 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6e02:1987:b0:3a1:92bb:1e52 with SMTP id e9e14a558f8ab-3a2768da838ls17048535ab.1.-pod-prod-06-us; Tue, 01 Oct 2024 08:14:02 -0700 (PDT) X-Received: by 2002:a92:c54f:0:b0:3a0:bc39:2d8c with SMTP id e9e14a558f8ab-3a3451c1b82mr130018875ab.25.1727795642752; Tue, 01 Oct 2024 08:14:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727795642; cv=none; d=google.com; s=arc-20240605; b=T/qYjGzU7EjncuUvslJjX2uoRcZppPmCmJPOy/B0kqjbs5p2yNahSiF+V/ScbmP9OI RN5T7M01/s2yYzh+5AudJNFEIoHLODdbUHa/mjTghzhihiqCT8gw4/oj3yruRTVEvsuD r8P7kjZ7Pf6dyUAsNYXNxHoO/PVuijNY8SjCsO8tFn2we0OOQCwvZKDgCVs0JmEBHd/h 2xKMzjmdFMOdpMoEcpAGl5vjIKwiyEsjG0BN6QQXW/8tYsm8HL/fmbh/bLA+I/x5/rPc ubHq9n3Asivm+NASDaUYaurbHHy1PIfb6rqTbZmbZOyXziQWQGJYe5TZijJXvlPxouBw f70Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=feedback-id:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=wcHJR86MlEKrOcKXqeRVFUrFpRwxuQCfLH1+KRN2fdY=; fh=gjNsleUMU++pCCGGHOTELE3rzItC14u9gn4+F3xKmnc=; b=BUDXRytCS1TSjgELYdiTOgmrzcy2JEY1hobanUe9j3DP2MUUysilHBN7xKsUuA/0Vp WTCRwAW/hhxYWOVSGNx3hsU8sfoljD2F7Afydnqrhmz2Ab4mjHWVlsmazeXFizQJVajJ FM92PMKaiv/i8XXEJPYICpgnsqbbkiCPfnTHXaIDiH16+Bl/t2KSn6nn9JVNytqFPZ0p 3TFcs0q9rnQrRpTQRddM39ev0pkhLBeLwGMnbfX9CZfwKGz7R8gKNUyvLz+dfvOpGCiN JB8oEJ6hYdzlDEYjR2h7hffdd4CA1nHE1UtgH1fzB+19QMUvo8szhGbQU2GJztkNeteN zkPg==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=hVXlQ8aB; spf=pass (google.com: domain of fm-294854-20241001151400ab5eac9ef4fea1a509-2lkc7v@rts-flowmailer.siemens.com designates 185.136.64.228 as permitted sender) smtp.mailfrom=fm-294854-20241001151400ab5eac9ef4fea1a509-2lKC7V@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-64-228.siemens.flowmailer.net (mta-64-228.siemens.flowmailer.net. [185.136.64.228]) by gmr-mx.google.com with ESMTPS id e9e14a558f8ab-3a344d621fdsi4543075ab.1.2024.10.01.08.14.02 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Oct 2024 08:14:02 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-294854-20241001151400ab5eac9ef4fea1a509-2lkc7v@rts-flowmailer.siemens.com designates 185.136.64.228 as permitted sender) client-ip=185.136.64.228; Received: by mta-64-228.siemens.flowmailer.net with ESMTPSA id 20241001151400ab5eac9ef4fea1a509 for ; Tue, 01 Oct 2024 17:14:00 +0200 X-Patchwork-Original-From: "'Jan Kiszka' via isar-users" From: Jan Kiszka To: isar-users Cc: Florian Bezdeka Subject: [PATCH v2 3/3] initramfs: Add missing umounts after generation Date: Tue, 1 Oct 2024 17:13:59 +0200 Message-ID: <3d2094cf49cca93e49b4e779cd29281f6016f824.1727795639.git.jan.kiszka@siemens.com> In-Reply-To: References: MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-294854:519-21489:flowmailer X-Original-Sender: jan.kiszka@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=hVXlQ8aB; spf=pass (google.com: domain of fm-294854-20241001151400ab5eac9ef4fea1a509-2lkc7v@rts-flowmailer.siemens.com designates 185.136.64.228 as permitted sender) smtp.mailfrom=fm-294854-20241001151400ab5eac9ef4fea1a509-2lKC7V@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: Jan Kiszka Reply-To: Jan Kiszka Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,RCVD_IN_RP_CERTIFIED, RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,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?= From: Jan Kiszka Failing to unmount what was mounted via rootfs_do_mounts can cause troubles on rebuilds. Signed-off-by: Jan Kiszka --- meta/classes/initramfs.bbclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/classes/initramfs.bbclass b/meta/classes/initramfs.bbclass index 6886b95a..42013356 100644 --- a/meta/classes/initramfs.bbclass +++ b/meta/classes/initramfs.bbclass @@ -45,6 +45,8 @@ do_generate_initramfs() { update-initramfs -u -v ; \ fi' + rootfs_do_umounts + if [ ! -e "${INITRAMFS_ROOTFS}/initrd.img" ]; then bberror "No initramfs was found after generation!" fi