From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7093814202197868544 X-Received: by 2002:a05:600c:4885:b0:393:fac6:f409 with SMTP id j5-20020a05600c488500b00393fac6f409mr3500291wmp.150.1652256227318; Wed, 11 May 2022 01:03:47 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:ad8:b0:394:2fc9:9c19 with SMTP id c24-20020a05600c0ad800b003942fc99c19ls2463882wmr.3.canary-gmail; Wed, 11 May 2022 01:03:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCAtRa2HI2hXdEWITpfZCDiJxjSVY+QOG/JPGSvhgogtVRz17c1ibS0D2xb86b8ZnOkNPY X-Received: by 2002:a7b:c403:0:b0:38e:7c57:9af7 with SMTP id k3-20020a7bc403000000b0038e7c579af7mr3397863wmi.144.1652256226280; Wed, 11 May 2022 01:03:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652256226; cv=none; d=google.com; s=arc-20160816; b=Kf+KFjtpwTuWOauWlAuDEvh44VXkWHlDVHRxdxm/VrZhU2zc18iScMql8GFQSOqEfc OrnOUSmc3QJs9WtYX967VCDtgclU2Zr+jFMXR8FMtuO/1uAlJcyQFsci18ZX4levxWzg VLMWQyQce68QZ03frchqrc5nwathapUHJfOFYPNIKFQdyhsad24QLussdxoMyV3DS1b2 x2DPP9b+9bxlLcKUYF2YyDufrMm0o9mdgQ5Rj+ssUrjLEktYCqdD43PVoHJSVNKlsgLe C5HVw/+l5OmUnLSbRxNLdx7oCu225JRpCMDRRZ9ZVEb9ZruwiC1e6Ude0s7E4f7iSvcy /N4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:from:date; bh=q7dAuIIy4TsfOcgKEzzxWUCagRJ9kukKgAd9wv1A/n0=; b=ehOEbMg6phytUEna816Pm6zyBxBA4Bdf8+0Tnc7xYRqeojpZZgVndA6gyi8OYO2lKd HtXsscZ+0QtofpbH7vWXXkxQQw0drCLC8+ZsdstGFaD+q3tyqmtrMpQH0lQTx7qaMRSE KV6cNq1nqdxtyvifbR/I8lLMbUt10FQRDUjiC/zFezHvqAvClh0Ep9wEgCJJIB7YvH8o Au1+d8iua3gcKsWD6ZrXu2CWz30iwYwiTDWFGeE6SD/i14EareKGMg/APuyyTteCr+OA cECFUV4zVVcDaIQTEPfDQqIIHsOw4P9gF+5o+Fi+iH4DmhEz5TsGjIjWTutpjBO+v1Pt rN3g== 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 p6-20020a05600c358600b003942a493261si103700wmq.1.2022.05.11.01.03.46 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 May 2022 01:03:46 -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 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 24B83iSB012903 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 11 May 2022 10:03:45 +0200 Date: Wed, 11 May 2022 10:03:44 +0200 From: Baurzhan Ismagulov To: isar-users@googlegroups.com Subject: Re: [PATCH v2 1/1] fix: mount pts into rootfs Message-ID: Mail-Followup-To: isar-users@googlegroups.com References: <20220504123802.3544809-1-felix.moessbauer@siemens.com> <20220504123802.3544809-2-felix.moessbauer@siemens.com> <20220504175338.6d37d23a@md1za8fc.ad001.siemens.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: x8s4KC0Pahn3 On Mon, May 09, 2022 at 02:34:54PM +0000, Moessbauer, Felix wrote: > > > diff --git a/meta/classes/buildchroot.bbclass > > > b/meta/classes/buildchroot.bbclass index 3d2211b9..527f8ded 100644 > > > --- a/meta/classes/buildchroot.bbclass > > > +++ b/meta/classes/buildchroot.bbclass > > > @@ -43,7 +43,8 @@ buildchroot_do_mounts() { > > > fi > > > mountpoint -q '${BUILDCHROOT_DIR}/dev' || > > > ( mount --bind /dev '${BUILDCHROOT_DIR}/dev' && > > > - mount -t tmpfs none '${BUILDCHROOT_DIR}/dev/shm' ) > > > + mount -t tmpfs none '${BUILDCHROOT_DIR}/dev/shm' && > > > + mount --rbind /dev/pts '${BUILDCHROOT_DIR}/dev/pts' ) > > > > if recursion was removed on purpose we should probably mount "-t devpts" and > > not "--rbind" > > Yes, I am happy to send a v3 with that fix, but before doing so we should agree on a direction. > In the end, it would probably be better to let schroot handle our buildchroots. > This shouldn't be too much effort, once the sbuilder patches are merged. I think the final solution should be removing buildchroots (we need a couple of days for v1, +/-). If an interim solution would be needed, mount --bind /dev/pts from the host should be used. In my local projects, I had started with mount -t devpts but switched to --bind in 2018 due to issues (at least "sudo: no tty present and no askpass program specified", not sure about other packages). In general, we'd like to work on removing the few remaining recursive mounts from Isar due to various issues (exponential mounts, asymmetric umounts, umounting problems). For debugging issues like "which package version was available in isar-apt when package X was being built", maybe we could evaluate something like an option for cp -al or similar. With kind regards, Baurzhan.