Message ID | 20241011100050.322686-9-amikan@ilbers.de |
---|---|
State | Accepted, archived |
Headers | show
Return-Path: <isar-users+bncBCHIPONZWECRBZPOUO4AMGQEYLALJEA@googlegroups.com> Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 11 Oct 2024 12:01:16 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-pg1-f190.google.com (mail-pg1-f190.google.com [209.85.215.190]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 49BA1Ejx008824 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <iupwgm@isar-build.org>; Fri, 11 Oct 2024 12:01:15 +0200 Received: by mail-pg1-f190.google.com with SMTP id 41be03b00d2f7-7cbe272efa6sf1875959a12.3 for <iupwgm@isar-build.org>; Fri, 11 Oct 2024 03:01:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1728640869; cv=pass; d=google.com; s=arc-20240605; b=EaFUMsV8bBjW8LVUNFeBXqYlismND87v1+L6q8qzVkYhcHBjvpDZ/l0l0QO+NHdDzA uGAZFyRfBXRaL7AHGEgzpxsImOooM+oyKDe98GnIDGOCvfnl8oibjCJmCQJX6L9wef2q yhYtgYk97USYbMSq6v/HkjMmpkVniWA0TYbuCf4VeLH/4379I7HjNDvwrZqp54qN/qLM IL41F6euy4eOOULlhVDoY914IsDfHJ2xp7sgX70zqM4QxG5jKMoyO0xkCM4ciZk2cGEa 0J8qbr9C2g9XpncxxFR7+kGXsQyhBldXe5u1v6yoCOL/6YTTrzFB00CHAQRxtNkil4uB gICw== 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:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=9t6Vq2p5F4BD42580+9liNuY6lsX1MbLkM9lTwu5Zd4=; fh=YFzy1FAtmbDcBw1SgeNSOnfi97b23R2fhXpu4TOASPQ=; b=ZL+Fzyw8GAkPew5gNq49rrTTXw1X8296b+qVq4FL7zeMsJElfeHUJhylb7mE+6kN3d 757XMPOqConQIgqumQhubAqm55oc8jsIu+Pi6U1svd2Pc3mfOnN7eki0onhr4qlDhELB T+gf92L5qyjhfVqcuuUqvu1n5EdOdZE6O/4qPXlL1K5QvzUBsLyby+kMlTaEgtp6sdxh KnnRWQi/DHzl1egTjAAA8B4QfWfnsOC6hWR5G4SzLPVcOxhNh3gok+vfoAR2unKkxI95 xf9udHtuxnsK45ENOMt7BUrKxvVFpzyzzcnOqGCPqbSMStAdRHoB9m8A1WKhHlfNhrUa WXbg==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1728640869; x=1729245669; darn=isar-build.org; 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:references:in-reply-to:message-id :date:subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=9t6Vq2p5F4BD42580+9liNuY6lsX1MbLkM9lTwu5Zd4=; b=toJxY5q42EMJBGoC+vCSuYioAkQUBEqcBBx+cZCkZjmh7OyRSNs/FPS2R7fgltYNP/ MHDZxUrSrTApGNvCr2USgohehoksnY6CnolfjVzwqgaecCim9f2S88XngXemBo93TvmW yF0Zgn0AVGkSwTMQvygnwZmXPfEItcgUSVv4JKeXzUl43tqV2/xQ/6JetYJddTj2nk0T p2wDbPpxuCwx1G1nFSvhpcZ4/Pju4VlQzI2Xhs1DQn1ykJyMt9RD//eEt+cWBHBInGdS sozfOQHzhv6al48gPoMd6xWRw8VpeGdoQxGRmnsSgu2T+Msif7888KGbK7K660x1FDyd vRtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728640869; x=1729245669; 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 :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=9t6Vq2p5F4BD42580+9liNuY6lsX1MbLkM9lTwu5Zd4=; b=X+nGKBNtcwDDhsVhrY0YHPiRarwkOvj6kVntjWCLCsYxUvfdbEHVBEsHCUG310mxnT zylitAMKwQM6q4KSn0LbK+USa/AGgI7Qb1sJkf1uAv5TVVFI87tf3qxidsAgd+Y+et/d YQlGTX+rJ7mW0sArt3+F8N39heitU8vMNQdgv6ZFCs+5g5PZBZjClhzBlhG/98j+JXeo BEndQzmsnjRmtcKMCoMi4fKTfp7HM8cSh/bc3JOoPHl74xwUCf9aDf2nItHrziUc7rM8 mhqotDST0fYvc6K3S5juosQcNi+ob0WuUHLaWPIHdL581/RXLgCn9MrLJws/UsSqctif oitg== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCX7vweO1kCXag4qLmL+rbbZ8NTV3coAzquA0hqGDj4NluUZT/7qZjI8R8P3GAGP1a7wlLOH6Cw=@isar-build.org X-Gm-Message-State: AOJu0YxrNHm8KYnNo39NClX130FzkPnTiNVg8bSm6zX6ptNL19Uqe/5P mTxX7LVN4ifSuVXoVajnZy0hLwPS7O9JdX4yVsEBHb3Xq6jVeIPR X-Google-Smtp-Source: AGHT+IGX93FLV9vOY4cv/ZvZgZjBK/MS+817W+zPdqI+/T8RMtHZZUoZkykqd6JgJW0OvA5YelxlcA== X-Received: by 2002:a05:6a21:1786:b0:1cf:6533:5c86 with SMTP id adf61e73a8af0-1d8bcf41d86mr2785345637.21.1728640869165; Fri, 11 Oct 2024 03:01:09 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:90a:8a15:b0:2e0:79a0:bd97 with SMTP id 98e67ed59e1d1-2e2c81f42edls1377046a91.0.-pod-prod-01-us; Fri, 11 Oct 2024 03:01:08 -0700 (PDT) X-Received: by 2002:a17:90b:33d1:b0:2e2:acd7:1df0 with SMTP id 98e67ed59e1d1-2e2f0dd5ec3mr2209444a91.41.1728640867891; Fri, 11 Oct 2024 03:01:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728640867; cv=none; d=google.com; s=arc-20240605; b=i0939hr1TkVh478/mmRnaY6xoOC5Yt8sANZ8sNQgviq8W9XG4N1tKU59XMxN1/galU lG3gCNEH0Mv4fBbYxWAfhp94GJtBvRLdFKgNyZJ8sst8sAFoKGZk2HqjlpFis7AlSu/5 oUg/lOUceYYiEwo5XtVz6k8yMKD+MDgj3aVtZ0T3YtMIwQZjQMioo080gYxa7d5gonjH du3ipZSha/xQZMegXT6r1X9E3YUXTbSQ49oX7z3I3I3kGP3l9sGJNJFiq4VuIXMn578f R+nEQ7CsamAfFsRwn7mavQTEmM4tzAYnubtVhNbVItezAKINhSFtcjSulOymQRzOH9/L rahQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=4YD3qD9Hl9OR7+d5AooDuYg4c93EVDoah5pZUp32DTw=; fh=/h9QQkzJ8EboVkWg45aWwpaUro6WMavIVd2OhN45RtE=; b=EXqIZI7b/hvTCK4C/TiKuxF7f3Bb0tcUoqhTSZChhn/wxIQXSPlRXy6MXqd82VArQu 4W8fpyeFt2qgBqxs9R/HrmVjXPtQLAPuBIIJeXoql/w7p8cLE8FGQcsikjpcziNH/mk8 dcsUHCGU9TOG4kLM/zRIy1r0T+UfBigJtQqeyM8GkoiG3hBU3rvaJeZoGREytPH091/P 5ctmKyyKfFxhMvw2YrBsp1uGGWgkebletjfwAD7wRlupdM8RQI0/X9iqUID7Suvef1b1 PpwMGpGRaXfkLawZCR8Ot7O9XGD27lCKWbsVR0z4K/b95FcYjUggholsVqfk1ZLNuRad lzfA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 98e67ed59e1d1-2e2cc1d9c1bsi281971a91.0.2024.10.11.03.01.07 for <isar-users@googlegroups.com> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 Oct 2024 03:01:07 -0700 (PDT) Received-SPF: pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from user-B660.promwad.corp ([159.148.83.114]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 49BA0vWP008632 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 11 Oct 2024 12:01:05 +0200 From: Anton Mikanovich <amikan@ilbers.de> To: isar-users@googlegroups.com Cc: Anton Mikanovich <amikan@ilbers.de> Subject: [PATCH v3 8/8] image: Do not call rootfs_do_umounts twice Date: Fri, 11 Oct 2024 13:00:50 +0300 Message-Id: <20241011100050.322686-9-amikan@ilbers.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241011100050.322686-1-amikan@ilbers.de> References: <20241011100050.322686-1-amikan@ilbers.de> MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,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-Original-Sender: amikan@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= |
Series |
Hanging mount fixes
|
expand
|
diff --git a/RECIPE-API-CHANGELOG.md b/RECIPE-API-CHANGELOG.md index 608d0cc3..56ebfeb7 100644 --- a/RECIPE-API-CHANGELOG.md +++ b/RECIPE-API-CHANGELOG.md @@ -674,3 +674,9 @@ always outputs a warning if mounts are left behind after the build. Bitbake exit status depends on ISAR_FAIL_ON_CLEANUP bitbake variable: - 0 or unset: Output a warning, unmount, build succeeds (default). - 1: Output a warning, keep mounts left behind, build fails. + +### Stricter rootfs mounts management + +rootfs_do_umounts is not called from do_rootfs_finalize anymore. + +Every individual task that does mounting must also do the umounting at its end. diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 1eb974e8..472df3cf 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -405,8 +405,6 @@ def apt_list_files(d): IMAGE_LISTS = "${@ ' '.join(apt_list_files(d)) }" do_rootfs_finalize() { - rootfs_do_umounts - sudo -s <<'EOSUDO' set -e
As now every rootfs_do_mounts should be followed by rootfs_do_umounts in the same task, there is no need in calling umount inside do_rootfs_finalize. Signed-off-by: Anton Mikanovich <amikan@ilbers.de> --- RECIPE-API-CHANGELOG.md | 6 ++++++ meta/classes/image.bbclass | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-)