From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6487873763254730752 X-Received: by 10.223.171.87 with SMTP id r23mr441941wrc.21.1510577934746; Mon, 13 Nov 2017 04:58:54 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.223.186.15 with SMTP id o15ls6852324wrg.13.gmail; Mon, 13 Nov 2017 04:58:54 -0800 (PST) X-Google-Smtp-Source: AGs4zMarYua4RxeTbx/8dZUKhAU6SQlVxH5bQWB5uxgpJG9fOknkvSpzu5UhwTHXx7EGO+bBdYp0 X-Received: by 10.28.182.9 with SMTP id g9mr413014wmf.5.1510577934518; Mon, 13 Nov 2017 04:58:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510577934; cv=none; d=google.com; s=arc-20160816; b=qXiI+7yETAj8WwPoeqAHXYpiVp19o8DeQMCbuszIXgi7FL0bkJlpdWCHxqFiUQ4hdp nQ1n2qHvaMbRMozhrzJzO+oSGH3AArV02m/VDIrxXruaxCJvQ1xj8+L9DjgxvF3noPzI AwBGE0FpFQRARTNlycRPbG8dW9kTlE+IP/IeYy7vIuFMPCPfZpP3RG/bPzXsi2Ldvb6Q MZfADG8wjwzJETKLxplF98N4ni9JGlk8uWM0V9sDOW2AfumsL4BvXRd1QXHRP4RtgzXs bOnjWf5aTDvq0GIlQmcx1w3EP3geoVb4m3kuZcW2B91O/Eqx+8VnD0WltKiGXANxWKhZ MqPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:mail-followup-to:message-id :subject:to:from:date:arc-authentication-results; bh=PBcvOdt88rPA0NDmORDnHRKUfmEah4U8lloLYoxvZfE=; b=QgWy+kC4zSNhvDqXL4Bp79pDIqXYwRRR4u4RXvqZWG8k7UHhLGLiqPz1iscIBShM1n DwGJ49cQdNsdCki5OWMGGHshItfQJLpeI8xBvXKPVlg0qJoxL4x4U8ACMjKnKzFu0IYy Va4OL+Nq1uRQROeB2tz42xpvn0+Fg2hT5wEvs7f9n1kd5npb2WhUMtI7ZMQ4SXUcGAyK cXwFDQEX+VUiYtDG8IMvbrHPUTb0vcmT6ThnYfHJX7r0rS12pN8dTVF1cPJS5UJzk/SR FMdrhoSW3zOv6NEWzO5/cWbw2sW3g2lLJwOBSMB/ypC0H+cuB3bYxrcVXl5qSJ7zw0GS cZMQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=christian.storm@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id r6si349298wrg.2.2017.11.13.04.58.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Nov 2017 04:58:54 -0800 (PST) Received-SPF: pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=christian.storm@siemens.com Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id vADCwsZj011297 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 13 Nov 2017 13:58:54 +0100 Received: from localhost ([139.25.69.251]) by mail1.siemens.de (8.15.2/8.15.2) with ESMTPS id vADCwsKF000482 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 13 Nov 2017 13:58:54 +0100 Date: Mon, 13 Nov 2017 13:57:45 +0100 From: Christian Storm To: isar-users@googlegroups.com Subject: Re: [PATCH] isar-image-base: fix some dangling mounts Message-ID: <20171113125745.fkuixp4wzt7oqyhk@MD1KR9XC.ww002.siemens.net> Mail-Followup-To: isar-users@googlegroups.com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4c30798e-62b8-6252-25fb-f7e680213bec@ilbers.de> User-Agent: Mutt/20170113 (1.7.2) X-TUID: aFBt0Z38fQy0 > > As bitbake/lib/bb/build.py's shell_trap_code() injects > > `set -e` into scripts, the premature end of scripts leaves > > dangling mounts around. Fix these dangling mounts by hooking > > into the EXIT trap handler also setup by shell_trap_code(). > > Could you please specify which mounts are dangling and how you > reproduce this? All those now supervised by the trap. To reproduce, e.g., for meta/recipes-devtools/buildchroot/buildchroot.bb, put a false after, e.g., the trap line simulating the following multistrap call to have failed. Then, without this patch, ${BUILDCHROOT_DIR}/proc is still mounted. With this patch, it's unmounted. Same procedure applies to the other cases. Kind regards, Christian -- Dr. Christian Storm Siemens AG, Corporate Technology, CT RDA ITP SES-DE Otto-Hahn-Ring 6, 81739 M�nchen, Germany