From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6946545331891863552 X-Received: by 2002:a2e:98c5:: with SMTP id s5mr4686135ljj.218.1617869625875; Thu, 08 Apr 2021 01:13:45 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:ac2:5081:: with SMTP id f1ls1200271lfm.2.gmail; Thu, 08 Apr 2021 01:13:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2Eh6rbPIlJl0mfhQJYxoqs/eR9Hb96y7+op7s49CNEh9Trd+yqICl6qSzwpBjtV7HqoZu X-Received: by 2002:a05:6512:348c:: with SMTP id v12mr5116912lfr.271.1617869624927; Thu, 08 Apr 2021 01:13:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617869624; cv=none; d=google.com; s=arc-20160816; b=0tFRw/jKBj+QrqihDZ9k6ZddGhDKePng894hmYNE3AF704k5WOdfLD/804I9Mx5xEl 5lJBMZ5Q8NEmvj7se8MSFBiY0m8dcFAlhxR7WFibXi36aF1XODrEIisycu0A8Vtp56FR B0+ZN4Apwq81tgYstHjmlktxeoL3jl1SOJ+d4fs/+7dWer0fJWRWmbJMy67K2GuOaZ6e yG41AoaLLZc0n6i3dFADSjBBk2tLrP6M+d3XhqHabrN4RKVXtYVmuR5dtXIlKlWvLd3/ YZWF1b/xDXuxjLViixTUWNBzTl6+ss35LDXVM9WDSNMepPwTcQ61wR0wMcd3QMM7XA7u cJng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:from:date; bh=lLc8kA45UplfoIoUUOO+xnscTO1FlUiG+4cDPP34YBc=; b=FE7VjkIAlFbiEvLJTkE9ZbaNz2dsr6N/k548aGbRSj3um8AEhf7iE3hLuC7HlFqgbF muh7Q2+3NxJr3dCszLCldsc8UI6B/euqA9kY+L0lLZ4ThE89cjL34Ohx4aaG0oSzV53S tp85F6gO0VAz97FE6LhntMck2KDT5+DtinzCR0i7+pUkuvCkuuR3AAfV/S/2eOnHmlXl QYVJzBE4Z9SzYn0GOTg6PzDtrtgbAMOWG3DE9LQ4NEnhOd+sKRAveiXav1YbEYxx/JgF su0X+RheBAq7e79aAdt2FRY4XLOLkVsJ6St2LsOk7XLURhu2m2428GkuksW7cgr2V4tV j43w== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 85.214.156.166 is neither permitted nor denied by best guess record for domain of ibr@radix50.net) smtp.mailfrom=ibr@radix50.net Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id u11si9900lfi.6.2021.04.08.01.13.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Apr 2021 01:13:44 -0700 (PDT) Received-SPF: neutral (google.com: 85.214.156.166 is neither permitted nor denied by best guess record for domain of ibr@radix50.net) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 85.214.156.166 is neither permitted nor denied by best guess record for domain of ibr@radix50.net) smtp.mailfrom=ibr@radix50.net Received: from yssyq.m.ilbers.de (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id 1388DfvY000809 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 8 Apr 2021 10:13:43 +0200 Date: Thu, 8 Apr 2021 10:13:41 +0200 From: Baurzhan Ismagulov To: isar-users@googlegroups.com Subject: Re: [PATCH] dpkg: Make mount buildroot reliable Message-ID: <20210408081341.GI5391@yssyq.m.ilbers.de> Mail-Followup-To: isar-users@googlegroups.com References: <20210402130330.66376-1-amikan@ilbers.de> <82deddfc-687d-1627-37f9-c3c0eae82505@siemens.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <82deddfc-687d-1627-37f9-c3c0eae82505@siemens.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED 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-TUID: jASXcsUV3tSI On Thu, Apr 08, 2021 at 08:27:29AM +0200, Jan Kiszka wrote: > On 02.04.21 15:03, Anton Mikanovich wrote: > > We use mounting for several tasks. Mounting and unmounting is performed > > in shell scripts. If a command fails before unmounting, the directories > > remain mounted. > > Right - but what is the problem to be solved? We are cleaning up in > build_completed() whatever is left by individual jobs. > > I'm not against this refactoring, but the purpose should be made clearer. This case is related to the dpkg unmounting WORKDIR and hanging forever with "Couldn't unmount, retrying..."; it doesn't reach build_completed(). We'll rework the commit message. That said, the next patch addresses the hanging mounts issue by unmounting the directories as soon as possible, so that build_completed() in most cases doesn't have to do anything. With kind regards, Baurzhan.