From: "Hoël Bézier" <hoelbezier@leanco.fr>
To: supervision@list.skarnet.org
Subject: s6-linux-init and ttys in lxc containers
Date: Tue, 8 Mar 2022 16:17:32 +0100 [thread overview]
Message-ID: <Yidzja7wIElPX79w@localhost> (raw)
[-- Attachment #1: Type: text/plain, Size: 886 bytes --]
Hi,
I’m using s6 and s6-linux-init inside lxc containers.
My /sbin/init (created with s6-linux-init-maker) contains the following:
```
#!/bin/execlineb -S0
s6-linux-init -c "/etc/s6-linux-init/current" -m 0022 -p "/usr/bin:/bin" -C -- "$@"
```
Right after starting my container with `lxc-start -F <container-name>`, I get
the following warning message:
s6-linux-init: warning: unable to ttyname stdout: No such device
I suspect this is due to the mechanism described on
https://github.com/lxc/lxd/issues/1724#issuecomment-194412831, although I’m not
using LXD, only lxc (which does not have a daemon running as root). Note that
s6-linux-init has been compiled against the musl libc, so the musl ttyname C
function may have the same issue as the glibc one.
That’s not a really serious issue, but I figured I’d still mention it here.
Hoël
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next reply other threads:[~2022-03-08 15:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-08 15:17 Hoël Bézier [this message]
2022-03-08 15:58 ` Laurent Bercot
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=Yidzja7wIElPX79w@localhost \
--to=hoelbezier@leanco.fr \
--cc=supervision@list.skarnet.org \
/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;
as well as URLs for NNTP newsgroup(s).