From: Baurzhan Ismagulov <ibr@radix50.net>
To: isar-users@googlegroups.com
Subject: Re: [PATCH v2 1/1] fix: mount pts into rootfs
Date: Wed, 11 May 2022 10:03:44 +0200 [thread overview]
Message-ID: <Yntt4IxrlQRYBG8F@ilbers.de> (raw)
In-Reply-To: <AM9PR10MB4869C939704D75C4FB932FEF89C69@AM9PR10MB4869.EURPRD10.PROD.OUTLOOK.COM>
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.
next prev parent reply other threads:[~2022-05-11 8:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-04 12:38 [PATCH v2 0/1] " Felix Moessbauer
2022-05-04 12:38 ` [PATCH v2 1/1] " Felix Moessbauer
2022-05-04 15:53 ` Henning Schild
2022-05-09 14:34 ` Moessbauer, Felix
2022-05-10 6:34 ` Anton Mikanovich
2022-05-11 8:03 ` Baurzhan Ismagulov [this message]
2022-05-11 9:30 ` Moessbauer, Felix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Yntt4IxrlQRYBG8F@ilbers.de \
--to=ibr@radix50.net \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox