Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1198020

Bug#1071462: installing/upgrading libc6 does not work in sbuild when systemd is installed as ischroot declines

Path csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod
From Johannes Schauer Marin Rodrigues <josch@debian.org>
Newsgroups linux.debian.bugs.dist, linux.debian.maint.glibc
Subject Bug#1071462: installing/upgrading libc6 does not work in sbuild when systemd is installed as ischroot declines
Date Mon, 20 May 2024 11:30:01 +0200
Message-ID <IG7vb-eBiH-3@gated-at.bofh.it> (permalink)
References <IFRTr-erIf-3@gated-at.bofh.it> <IFScN-es3P-11@gated-at.bofh.it> <IFRTr-erIf-3@gated-at.bofh.it> <IFW6J-eulg-9@gated-at.bofh.it> <IFXPb-evuJ-1@gated-at.bofh.it> <IFRTr-erIf-3@gated-at.bofh.it> <IG3KV-ez6t-3@gated-at.bofh.it> <IG3UC-ez9C-5@gated-at.bofh.it> <IFRTr-erIf-3@gated-at.bofh.it> <IG6St-eAR0-3@gated-at.bofh.it> <IFRTr-erIf-3@gated-at.bofh.it> <IG6St-eAR0-3@gated-at.bofh.it>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Mon May 20 09:24:09 2024
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score 0.201
Reply-To Johannes Schauer Marin Rodrigues <josch@debian.org>, 1071462@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc sbuild maintainers <sbuild@packages.debian.org>, Ileana Dumitrescu <ileanadumitrescu95@gmail.com>, GNU Libc Maintainers <debian-glibc@lists.debian.org>, Debian systemd Maintainers <pkg-systemd-maintainers@lists.alioth.debian.org>
X-Debian-Pr-Message followup 1071462
X-Debian-Pr-Package sbuild,debianutils,libc6,systemd-sysv
Content-Type multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="===============2317124223981888692=="
MIME-Version 1.0
Content-Disposition inline
User-Agent alot/0.10
X-Debian-User josch
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1838430
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 68
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc 1071462@bugs.debian.org, Helmut Grohne <helmut@subdivi.de>, Luca Boccassi <bluca@debian.org>
X-Original-Date Mon, 20 May 2024 11:20:41 +0200
X-Original-Message-ID <171619684184.351019.15800892686273236348@localhost>
X-Original-References <20240519164217.GA2062593@subdivi.de> <9782427325b8615eace0b4e0b9e15af409881169.camel@debian.org> <20240519164217.GA2062593@subdivi.de> <20240519211235.GA2115739@subdivi.de> <ZkqFCDmPE4uOA9r9@per> <20240519164217.GA2062593@subdivi.de> <20240520051754.GA2119204@subdivi.de> <171618334765.310473.3649479077802646951@localhost> <20240519164217.GA2062593@subdivi.de> <5ujblxujpgqwhljy5mq63qx7c7s4pgevz6i75734nvwnswsv2q@m475uoxcna63> <20240519164217.GA2062593@subdivi.de> <5ujblxujpgqwhljy5mq63qx7c7s4pgevz6i75734nvwnswsv2q@m475uoxcna63>
Xref csiph.com linux.debian.bugs.dist:1198020 linux.debian.maint.glibc:6302

Cross-posted to 2 groups.

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi,

Quoting Chris Hofstaedtler (2024-05-20 10:38:04)
> * Johannes Schauer Marin Rodrigues <josch@debian.org> [240520 07:35]:
> > [..] But maybe it [glibc's postinst] should be doing some
> > more involved checks about what PID 1 is? It could then make sure to only call
> > systemd telinit if systemd is pid 1. [..]
> 
> Well, that would probably suck. Putting the knowledge when to call
> telinit, and a specific telinit, into a ton of different things
> makes all those things hard to get right, hard to update, the usual.
> 
> I've checked the sysvinit and the systemd implementations now, and
> they are not that different. Both try to talk to their respective
> pid1 daemons first using their respective communication socket.
> 
> But then, if that doesn't work, they diverge:
> - sysvinit's telinit just gives up
> - systemd's telinit, *as an explicit fallback*, sends signals.
> 
> systemd's telinit (aka systemctl) helpfully exits if it detects
> being in a chroot, before doing any of that.
> 
> IWSTM systemd's telinit could, if called as telinit, not do the
> fallback to stick with sysvinit's behaviour?
> 
> As a bonus, sysvinit's telinit could also gain the chroot check, and glibc's
> postinst (and other places) can become simpler again.

via irc, jochen also pointed out: telinit could be the component which checks
what PID 1 actually is and only do its thing after it confirmed that it is
indeed an init system like systemd that is providing PID 1?

Thanks!

cheers, josch

Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#1071462: installing/upgrading libc6 does not work in sbuild when systemd is installed as ischroot declines Helmut Grohne <helmut@subdivi.de> - 2024-05-19 18:50 +0200
  Bug#1071462: installing/upgrading libc6 does not work in sbuild when systemd is installed as ischroot declines Luca Boccassi <bluca@debian.org> - 2024-05-19 19:10 +0200
    Bug#1071462: installing/upgrading libc6 does not work in sbuild when systemd is installed as ischroot declines Helmut Grohne <helmut@subdivi.de> - 2024-05-19 23:20 +0200
      Bug#1071462: installing/upgrading libc6 does not work in sbuild when systemd is installed as ischroot declines Chris Hofstaedtler <zeha@debian.org> - 2024-05-20 01:10 +0200
        Bug#1071462: installing/upgrading libc6 does not work in sbuild when systemd is installed as ischroot declines Helmut Grohne <helmut@subdivi.de> - 2024-05-20 07:30 +0200
          Bug#1071462: installing/upgrading libc6 does not work in sbuild when systemd is installed as ischroot declines Johannes Schauer Marin Rodrigues <josch@debian.org> - 2024-05-20 07:40 +0200
            Bug#1071462: installing/upgrading libc6 does not work in sbuild when systemd is installed as ischroot declines Chris Hofstaedtler <zeha@debian.org> - 2024-05-20 10:50 +0200
              Bug#1071462: installing/upgrading libc6 does not work in sbuild when systemd is installed as ischroot declines Johannes Schauer Marin Rodrigues <josch@debian.org> - 2024-05-20 11:30 +0200
                Bug#1071462: installing/upgrading libc6 does not work in sbuild when systemd is installed as ischroot declines Luca Boccassi <bluca@debian.org> - 2024-05-20 11:30 +0200
                Bug#1071462: installing/upgrading libc6 does not work in sbuild when systemd is installed as ischroot declines Aurelien Jarno <aurel32@debian.org> - 2024-05-20 11:40 +0200
                Bug#1071462: installing/upgrading libc6 does not work in sbuild when systemd is installed as ischroot declines Luca Boccassi <bluca@debian.org> - 2024-05-20 11:50 +0200
                Bug#1071462: installing/upgrading libc6 does not work in sbuild when systemd is installed as ischroot declines Aurelien Jarno <aurel32@debian.org> - 2024-05-20 12:00 +0200
                Bug#1071462: installing/upgrading libc6 does not work in sbuild when systemd is installed as ischroot declines Luca Boccassi <bluca@debian.org> - 2024-05-20 12:10 +0200
                Bug#1071462: installing/upgrading libc6 does not work in sbuild when systemd is installed as ischroot declines Johannes Schauer Marin Rodrigues <josch@debian.org> - 2024-05-20 16:20 +0200
                Bug#1071462: installing/upgrading libc6 does not work in sbuild when systemd is installed as ischroot declines Luca Boccassi <bluca@debian.org> - 2024-05-20 16:20 +0200
              Bug#1071462: installing/upgrading libc6 does not work in sbuild when systemd is installed as ischroot declines Aurelien Jarno <aurel32@debian.org> - 2024-05-20 11:50 +0200
                Bug#1071462: installing/upgrading libc6 does not work in sbuild when systemd is installed as ischroot declines Luca Boccassi <bluca@debian.org> - 2024-05-20 16:00 +0200

csiph-web