From patchwork Tue Oct 1 15:13:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 3840 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:12 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-pg1-f192.google.com (mail-pg1-f192.google.com [209.85.215.192]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 491FEAXY014062 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 1 Oct 2024 17:14:11 +0200 Received: by mail-pg1-f192.google.com with SMTP id 41be03b00d2f7-7d4f9974c64sf3797258a12.1 for ; Tue, 01 Oct 2024 08:14:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1727795644; cv=pass; d=google.com; s=arc-20240605; b=ESsMplAG1L/v2IMKkAnjzBPayJopEmG/qFs1tsLAFtB858uoxmSt117PHIvZ5561Hv et91WW9/7Hr4U9aie3V8UnNQabmqyh+siG62RH+LQJQttILuC3VIzX0lPt1a0RsisxNv h4WM2PJDCnxQ1dNqRjI1AN49TLgDkGhq01HnNNYnJiEy+Fo8F2AOnysWpv+6VHMRvK32 4zN3ukrnKa5ogUWFlHcd+Iq55xnn5mz9YDK8+hUrQrieFlwR3lKGHKMGBxvXK95enyOM Ze5XmuNrA4UZAdgAHnlpRbPGmlY2Fzjr30KovTTtSkUBlg73UAhIr1rHsAWCWCQT51xl rVqA== 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=aRKkaUsVXvNBsotZzZ9xZzaCcPhnoG3zbXMppIjWQzA=; fh=qLg9WieqOIALPs8vtePuAWMX/aIpbvuT5UZr+pbmoq4=; b=a9GqdJmXCgGUd/qX0rFZlBilMfMiTlPq7BS76j3kWXvc9zO5sCai5OQYMKpr51HfAm lj08Nj8EcWkzgKeiv5EXs2OttnHjxQpyKmeQVZ4RJBVhMnulpQmfSYJG5Yt+on+V9NFW BO+ujQjCG1Kr+CgTpRT7RqAp3r+BDBOfFu3w0F2qUZsJnlGNj/TXS9qd8yY1xSC3M5TJ WuY+vpOrpT+e3aF8u+D9UuRVvhs19cTIkX7SGaOshlIPYOgMop9pDB2mvpuU3KFX0K3W 4+dcujF5YCupcqdXz0/FGN6LQKxOzlSU3xJdZoJAN8L9StWvtSPkWMe86jb6VBxHDgDS Z5tQ==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=AtXqWcP1; spf=pass (google.com: domain of fm-294854-2024100115140049dae0ce783bd6a314-_pugcn@rts-flowmailer.siemens.com designates 185.136.64.226 as permitted sender) smtp.mailfrom=fm-294854-2024100115140049dae0ce783bd6a314-_pUgCn@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=aRKkaUsVXvNBsotZzZ9xZzaCcPhnoG3zbXMppIjWQzA=; b=hy/e9HiXT5u4+5d5zVdZQ1T1NMXBC9++ln3ZXOZS2weyGRlEpujhhm9NkqoS7wQCZo 933wRKUCwnx6GJQvRUZyjB3rjlqVsBUcGTxsYKJIBGr3sBNanKg/rFBxWL/SCeuLNWYH kt9aA7IuyI76aNaLsHMdALLp9QkGLPgQWKaFnB6riSt9M+745SAmvHTjFbJvyYF7/Hpw 5bZEVC9pg6HeQ+TL+oeuTbuWp78ThzHCqC1/58uQBbOy3waoPBx56WW8sSBB+u3upedL VyUfPoqYjb+TU7xUdPRJE1jDjEyoVS3M5KYFoaVQa3RHSdLDvKS7kBcTxbaq5OylIwxt AF4Q== 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=aRKkaUsVXvNBsotZzZ9xZzaCcPhnoG3zbXMppIjWQzA=; b=DUQHJSUvqciFZeu+QFMYT74H8jlMBUHJyH1KwUIuJ05skK2ZMNd7neKLEWgUo1kqCa S5r7FlHPAq6bX0wGXG4adicNokQJOlwQTeEMJixQSEe/JoCKRilXBsAtkag0NwnZ/wxE VYYM2Xz+tkuHENGqHqVdC2f0P6Q2jz5RVqwXqtJqMxiAShih7f/ahd5vNIK3ZBEUOHsB ClWLoWqYSSoZIRvArqi3Lghtq/8OvTbJcgkesuWo5x+TMKwQ+FwP95oFesecUUWlk4Gl W9jw7JU123NViWPQgER4aNZi0zJjcrr4lC7N1WYj0MwLnI3xCoKiruumZUAn9ioV8GsN 0/MQ== X-Forwarded-Encrypted: i=2; AJvYcCVNs/b3vXLtcKZInXkj+TeLDnVcDS2Vqo5PmlISYkoHmT+wVMoo606LZvn89y9z2NECjn8B51c=@isar-build.org X-Gm-Message-State: AOJu0YxxZXm4e4kguoApx2OZ8IRvE/BN8FeGpgh+yAOPhOBVKmWxJg+C b7WS8JAJJRdf+dX9Vfgz2jN+H+UIV8TOfCthgljJtAFLbGxB1oU5 X-Google-Smtp-Source: AGHT+IF/Pe/MpnNkFIF5fjoVmjfHJW4Adv7zXj1zxeDsI5jLD5t1BF33DHefXJd495djJidlL3zXDg== X-Received: by 2002:a17:90a:62c3:b0:2c9:6cd2:1732 with SMTP id 98e67ed59e1d1-2e182cad975mr86587a91.0.1727795644217; Tue, 01 Oct 2024 08:14:04 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:90b:ecc:b0:2da:7722:3e2 with SMTP id 98e67ed59e1d1-2e090d40c27ls2739212a91.1.-pod-prod-07-us; Tue, 01 Oct 2024 08:14:03 -0700 (PDT) X-Received: by 2002:a17:90a:88d:b0:2da:9490:900c with SMTP id 98e67ed59e1d1-2e1846aff5bmr36866a91.21.1727795642622; 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=To9mC8I9UpsFuwZgB6BSGp+jKMWUY84nEOYJNb+FgNVS7D4m6lJ1Ow0sEEj4cDM5pV QchYhfkKy2DljlmtHekv4vNQBmEcqZCS3s5mDqiSdEkxTSqQsxLnbb0HfdfqVSlgkQNq Ny9onbeEyK6L9f2wYxieG7S9NpaQsbW9wWLXAhl9a174S8j4Y3mNks3eny9ThqL/ZvH/ tX/cuucqKUDSoyhcBpOUD9o14LUpDSx/rdqmurgpGtx6/vtW6MHRpQzkdzu9hziTWxOk HyrdLYbLtndaaiV+0d0rbG/k/wRgQCa6s7hLR6/zDzdgNcIUXnfNDIs/XdibShUrq7g5 cAUw== 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=L+aiyg+Vkq2cXPD5BGZvb9NyrKygouJJWb+h7oqhrEo=; fh=gjNsleUMU++pCCGGHOTELE3rzItC14u9gn4+F3xKmnc=; b=kzE8jdKRoMqsteB9rWoi1I1XJ0zpxfCgyxfSKMFcEFZSdp5fYiMWpwjSTCDBMNBbKS qTmObyW4TV0YwlVLnBQIBs0s3v9lefTcyPjl6VSjw45Af0+DKxcvb7Bh46FFUm/LDkb1 Nm2O+gbEzmFs3dCgfut/dG6lO1P2KcTJk4+Nsezf3olZJ1+qpCti6nx5S09uvQoiEbXT riq7wHz+ei5yWrWSFCrRAFU+cYoBmTk7faGo2y3G4qETcvIgDsTqtUGZtXhC2rXrSgIF ac+KX1DWE2UDunLfMx90VoZgZqYq0jcUHGqo5bbtKDMqpTzQZWLncwe5GYGmJ7fcbOH7 ZKOA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=AtXqWcP1; spf=pass (google.com: domain of fm-294854-2024100115140049dae0ce783bd6a314-_pugcn@rts-flowmailer.siemens.com designates 185.136.64.226 as permitted sender) smtp.mailfrom=fm-294854-2024100115140049dae0ce783bd6a314-_pUgCn@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-64-226.siemens.flowmailer.net (mta-64-226.siemens.flowmailer.net. [185.136.64.226]) by gmr-mx.google.com with ESMTPS id 98e67ed59e1d1-2e18258f2b7si11952a91.0.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-2024100115140049dae0ce783bd6a314-_pugcn@rts-flowmailer.siemens.com designates 185.136.64.226 as permitted sender) client-ip=185.136.64.226; Received: by mta-64-226.siemens.flowmailer.net with ESMTPSA id 2024100115140049dae0ce783bd6a314 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 1/3] image: Avoid breaking the build when mounts are no longer present on umount Date: Tue, 1 Oct 2024 17:13:57 +0200 Message-ID: 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=AtXqWcP1; spf=pass (google.com: domain of fm-294854-2024100115140049dae0ce783bd6a314-_pugcn@rts-flowmailer.siemens.com designates 185.136.64.226 as permitted sender) smtp.mailfrom=fm-294854-2024100115140049dae0ce783bd6a314-_pUgCn@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 This does not seem to trigger yet because we always have those mountpoints present. But if that is no longer the case, we will bail out when mountpoint fails due to the set -e. Fixes: 165519a7b314 ("sudo: Fail on the first error") Signed-off-by: Jan Kiszka --- meta/classes/image.bbclass | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index c29d9e26..ef25df49 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -406,24 +406,31 @@ do_rootfs_finalize() { -maxdepth 1 -name 'qemu-*-static' -type f -delete fi - mountpoint -q '${ROOTFSDIR}/isar-apt' && \ - umount '${ROOTFSDIR}/isar-apt' && \ + if mountpoint -q '${ROOTFSDIR}/isar-apt'; then + umount '${ROOTFSDIR}/isar-apt' rmdir --ignore-fail-on-non-empty ${ROOTFSDIR}/isar-apt + fi - mountpoint -q '${ROOTFSDIR}/base-apt' && \ - umount '${ROOTFSDIR}/base-apt' && \ + if mountpoint -q '${ROOTFSDIR}/base-apt'; then + umount '${ROOTFSDIR}/base-apt' rmdir --ignore-fail-on-non-empty ${ROOTFSDIR}/base-apt + fi - mountpoint -q '${ROOTFSDIR}/dev/pts' && \ + if mountpoint -q '${ROOTFSDIR}/dev/pts'; then umount '${ROOTFSDIR}/dev/pts' - mountpoint -q '${ROOTFSDIR}/dev/shm' && \ + fi + if mountpoint -q '${ROOTFSDIR}/dev/shm'; then umount '${ROOTFSDIR}/dev/shm' - mountpoint -q '${ROOTFSDIR}/dev' && \ + fi + if mountpoint -q '${ROOTFSDIR}/dev'; then umount '${ROOTFSDIR}/dev' - mountpoint -q '${ROOTFSDIR}/proc' && \ + fi + if mountpoint -q '${ROOTFSDIR}/proc'; then umount '${ROOTFSDIR}/proc' - mountpoint -q '${ROOTFSDIR}/sys' && \ + fi + if mountpoint -q '${ROOTFSDIR}/sys'; then umount '${ROOTFSDIR}/sys' + fi if [ -e "${ROOTFSDIR}/etc/apt/sources-list" ]; then mv "${ROOTFSDIR}/etc/apt/sources-list" \ From patchwork Tue Oct 1 15:13:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 3841 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:13 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-pj1-f63.google.com (mail-pj1-f63.google.com [209.85.216.63]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 491FEBMJ014077 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 1 Oct 2024 17:14:12 +0200 Received: by mail-pj1-f63.google.com with SMTP id 98e67ed59e1d1-2e1048bd88csf3918727a91.0 for ; Tue, 01 Oct 2024 08:14:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1727795645; cv=pass; d=google.com; s=arc-20240605; b=lfv/w30sQuIQ8mW4OWNmHAi8ecI+ENsxHKLL5UgDn40aVyyR1i37SguYrQL+otKjb6 nDqUFYamgm59QV4s56zSNxTKIflAmti/NggYgLTbnI11QOUXp0/LzGA/bROgU/vut9GV ociR5OH+IuNgffQgm299sw/OvaC1OigPGiXEQt6ycqKmAr4EnycobkPsWHvqXlALxJwF nC1WcuiLjRDCqTO1ZCqgiI4e7t4IGyCuC92lQVx0HANtc+FdgFXU8CDciApQp92v7HGr yErsnpV+FwbW39OjHuI9SwQuSxPuX+JxRV3Pmb92vIG0K6Qelw0Zl0S9pAp/WxlA0+xB pktQ== 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=HbDREeWSGj7oSvuhLhn0N6upudDIbGNyjEiVWn+4ugc=; fh=LmD0CnTPFQVBsdV3m3DIVre2NNFXGnb7cPHdK8Mw150=; b=NDpH7DFL6Rgl/KPhtD8fWqBAq1QAEzveRUKkwZ53MviJcgink3CffY+vpFguC64Ji8 7X/9w5K/g5UyMilNmK6oGbOTf2FftyzClGMwClg6+zAtX3aoYE0PGpYBfZXVUHMuS+q/ ByKudkc6cL3IqBzKzvXDEVtqQH40TqOytnI4cS5LCdJp7f/HrZePpOPMOnyOkM+ErSFu 5QlvIsP5ZJASa4ya/06GKroB3r2D3d7OiNpaXkXNBqJUY+a15OTDmKvY/ggbDh21Rrit 0gQgblsNVPA7dz8Zryj06+gYvzPKLH8lxIiPPGhUA416IaXgriCb7ygzRdKnef3WpeTo YM2Q==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=Y6LnXluv; spf=pass (google.com: domain of fm-294854-20241001151400eebc8bdafdad8ec274-6sxvlf@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-294854-20241001151400eebc8bdafdad8ec274-6sXVLf@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=1727795645; x=1728400445; 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=HbDREeWSGj7oSvuhLhn0N6upudDIbGNyjEiVWn+4ugc=; b=BfkTs396N65hLe3Me2IYy1PdmsRTnX4V3x1m3AT3uH5wSHpC0QmsJiSGsYwOlRmKur h3sVm4eRXWVlO812oDP+94/mbKTjZxeN65mV2MeLEkmxwU+lM2abr3HCy24AUAYAVcfE RgJ/A3WXuGr8XKGkEUqi+NZGUWBYY//gwQDgMDdrGxuoO0riHXIClBNgt47H4wPAj2dM LQvuUBHCacO3Z8y8p7TnwPXTGtyTH1+9urQG7jpi4ViQZ+VgtR9j041+oQs0f7IIqcbN uAErPVmo/3m7yAFqvqCa6075seZs+QYrnmcgpGKszeokr0kNLx1YkcVB3XWPCel3awrA avTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727795645; x=1728400445; 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=HbDREeWSGj7oSvuhLhn0N6upudDIbGNyjEiVWn+4ugc=; b=u34I5cnbZZgZzAcL+gtd/rnHM/HFZ0VigxLy65G1TKAil6VZPo6zLSsQHkQ1LehUzV fY8Hl5MRtxvIbH4cSXeZhN3VOpfNWeR11Jx9uzaAatA5Wwzm7xG9bPykdlJC0nS8cgGa byOz68ab5r7ZApoo9KYiOLPQdqUp1HC5zVPzOa+gNWEwAfMSFmi8+x6QVU0+kdzwnlJq C4jHJnvQskS6JnbdbZ6PpkGxTIOkqPCWSYYHr85VsDsas5iFN7z4nMb991kts5aKc/UX nGYIFJlLBqtoqHWCN8X8cVaJHdag+Ze8js0bLDnjmhh2DZEmS4bu1MqvCQx3PLwmdmjZ EQSQ== X-Forwarded-Encrypted: i=2; AJvYcCUiECP9Xbe3WaXsdAWIxG9XdqbXUfvum1bJg2F3JeEgvmEUap9AV6nEWKIuRBRVqaSbR4Rjhgk=@isar-build.org X-Gm-Message-State: AOJu0YwfNSy+FU6pLZdfir6jkTe1383DzuFpbRQ5o52yaZuNOLUyeGwp up50KpYQDwQVKf48HwwSS0aAcujiBq6WQ0VN3NLgkGprKYxsZZoy X-Google-Smtp-Source: AGHT+IEBm7Q6/Hoy3LzRE/hRgx6l6EYAMXkOW33OdyhDdX4LfrnoIEapxOhivYXO+HvfVemiENwEKA== X-Received: by 2002:a17:90b:1c87:b0:2d8:8d34:5b8 with SMTP id 98e67ed59e1d1-2e18469315amr40665a91.10.1727795644847; Tue, 01 Oct 2024 08:14:04 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:90a:de94:b0:2cb:4a85:9588 with SMTP id 98e67ed59e1d1-2e0909d1cc3ls3435327a91.1.-pod-prod-03-us; Tue, 01 Oct 2024 08:14:03 -0700 (PDT) X-Received: by 2002:a17:90a:d814:b0:2da:8e9b:f37b with SMTP id 98e67ed59e1d1-2e184814f7bmr30165a91.24.1727795642746; 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=lfRCNeLdr9Fls4dQV0chRkfdZ6LyLY1lzDGhOHlBa5zfHPHDQOYOKGPVFmH+xFL5+9 aiYjx+lzHF/7MmyM9Z9ISQwd2qZBF5WceWiAyTwQConRl8uAqLyaL+zUYXRJaYVocFMm YsOicmUTxpMkx0FAmfJ1nygbAATM/kpfl7FxYMJwtw1A7CbAyKT7rPikzpuA12nga9MA 5QEkDLJq009CeEG7FXz87LPF0Y1tlURKY3CTCZ86B1zMF9LzmXQIzBqVL7BUONeDFfhN KlKnTgT7+79M/4bs4cbLwBDhDznMqeFAbXf3qB9MCt6UhTy/sfbjwrRkDtqGBmpK9WXt 6zgg== 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=KRXGOByZsAUou3GMTqBRF3bIWkykNaMS+P+QePQa3CA=; fh=gjNsleUMU++pCCGGHOTELE3rzItC14u9gn4+F3xKmnc=; b=jiqyGUZs/Gkgtdes19STE6HLcy09+AyYmu6xQqj7u5lj1nTfIaW6pjKI9F/Tlei3R1 FN6fs8SArykavDcXbpsFN5EJU1fpk87kXLy2s5+/Bcmfl6O3ks//+5YaHT8qpWw3JLbu V3YYyCaa6kfwsNo003xRwzLy49IBQSZSiKtnPof4kYHjxJmv+8KSRwueLUB7TFs2ugeD OhQr0R+EaQO2a2XOZNOtbvkjJFD1egPGn3zjXk5DuRzSJSGNq+z6vWd8W0myqii5booD Ayuc+76IjCmWU3KRfKT6/GwAX7MWGk9oGfgjvotIa8awKac7ocS6KZs7c9QF/ehPukVJ VaUw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm2 header.b=Y6LnXluv; spf=pass (google.com: domain of fm-294854-20241001151400eebc8bdafdad8ec274-6sxvlf@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-294854-20241001151400eebc8bdafdad8ec274-6sXVLf@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-64-227.siemens.flowmailer.net (mta-64-227.siemens.flowmailer.net. [185.136.64.227]) by gmr-mx.google.com with ESMTPS id 98e67ed59e1d1-2e1829cc7a3si4821a91.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-20241001151400eebc8bdafdad8ec274-6sxvlf@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) client-ip=185.136.64.227; Received: by mta-64-227.siemens.flowmailer.net with ESMTPSA id 20241001151400eebc8bdafdad8ec274 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 2/3] rootfs: Provide rootfs_do_umounts Date: Tue, 1 Oct 2024 17:13:58 +0200 Message-ID: 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=Y6LnXluv; spf=pass (google.com: domain of fm-294854-20241001151400eebc8bdafdad8ec274-6sxvlf@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-294854-20241001151400eebc8bdafdad8ec274-6sXVLf@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 This will be used more frequently soon to avoid dangling mounts. Signed-off-by: Jan Kiszka --- meta/classes/image.bbclass | 28 ++-------------------------- meta/classes/rootfs.bbclass | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 26 deletions(-) diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index ef25df49..1414a3ee 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -393,6 +393,8 @@ python do_deploy() { addtask deploy before do_build after do_image do_rootfs_finalize() { + rootfs_do_umounts + sudo -s <<'EOSUDO' set -e @@ -406,32 +408,6 @@ do_rootfs_finalize() { -maxdepth 1 -name 'qemu-*-static' -type f -delete fi - if mountpoint -q '${ROOTFSDIR}/isar-apt'; then - umount '${ROOTFSDIR}/isar-apt' - rmdir --ignore-fail-on-non-empty ${ROOTFSDIR}/isar-apt - fi - - if mountpoint -q '${ROOTFSDIR}/base-apt'; then - umount '${ROOTFSDIR}/base-apt' - rmdir --ignore-fail-on-non-empty ${ROOTFSDIR}/base-apt - fi - - if mountpoint -q '${ROOTFSDIR}/dev/pts'; then - umount '${ROOTFSDIR}/dev/pts' - fi - if mountpoint -q '${ROOTFSDIR}/dev/shm'; then - umount '${ROOTFSDIR}/dev/shm' - fi - if mountpoint -q '${ROOTFSDIR}/dev'; then - umount '${ROOTFSDIR}/dev' - fi - if mountpoint -q '${ROOTFSDIR}/proc'; then - umount '${ROOTFSDIR}/proc' - fi - if mountpoint -q '${ROOTFSDIR}/sys'; then - umount '${ROOTFSDIR}/sys' - fi - if [ -e "${ROOTFSDIR}/etc/apt/sources-list" ]; then mv "${ROOTFSDIR}/etc/apt/sources-list" \ "${ROOTFSDIR}/etc/apt/sources.list.d/bootstrap.list" diff --git a/meta/classes/rootfs.bbclass b/meta/classes/rootfs.bbclass index f0abd795..ef40cbdf 100644 --- a/meta/classes/rootfs.bbclass +++ b/meta/classes/rootfs.bbclass @@ -65,6 +65,38 @@ rootfs_do_mounts() { EOSUDO } +rootfs_do_umounts() { + sudo -s <<'EOSUDO' + set -e + if mountpoint -q '${ROOTFSDIR}/isar-apt'; then + umount '${ROOTFSDIR}/isar-apt' + rmdir --ignore-fail-on-non-empty ${ROOTFSDIR}/isar-apt + fi + + if mountpoint -q '${ROOTFSDIR}/base-apt'; then + umount '${ROOTFSDIR}/base-apt' + rmdir --ignore-fail-on-non-empty ${ROOTFSDIR}/base-apt + fi + + if mountpoint -q '${ROOTFSDIR}/dev/pts'; then + umount '${ROOTFSDIR}/dev/pts' + fi + if mountpoint -q '${ROOTFSDIR}/dev/shm'; then + umount '${ROOTFSDIR}/dev/shm' + fi + if mountpoint -q '${ROOTFSDIR}/dev'; then + umount '${ROOTFSDIR}/dev' + fi + if mountpoint -q '${ROOTFSDIR}/proc'; then + umount '${ROOTFSDIR}/proc' + fi + if mountpoint -q '${ROOTFSDIR}/sys'; then + umount '${ROOTFSDIR}/sys' + fi + +EOSUDO +} + rootfs_do_qemu() { if [ '${@repr(d.getVar('ROOTFS_ARCH') == d.getVar('HOST_ARCH'))}' = 'False' ] then 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