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


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

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

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 2024-05-20 16:20 +0200
Message-ID <IGc1P-eE2b-3@gated-at.bofh.it> (permalink)
References (7 earlier) <IG7Oy-eBpO-9@gated-at.bofh.it> <IFRTr-erIf-3@gated-at.bofh.it> <IG7Yd-eBsY-3@gated-at.bofh.it> <IFRTr-erIf-3@gated-at.bofh.it> <IG7Yd-eBsY-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


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

Hi,

Quoting Aurelien Jarno (2024-05-20 11:49:32)
> > > > That's all legacy stuff and I really don't want to touch it anymore.
> > > > Going from the other side, maybe libc6.postinst could use something
> > > > more reliable than ischroot()? Is systemd-detect-virt able to figure
> > > > out the situation a bit better?
> > > Nope.
> > What's the output? With SYSTEMD_LOG_LEVEL=debug exported
> In sbuild using unshare chroot running in a VM:
> 
> | SYSTEMD_LOG_LEVEL=debug /usr/bin/systemd-detect-virt
> | Failed to read $container of PID 1, ignoring: Permission denied
> | Found cgroup2 on /sys/fs/cgroup/, full unified hierarchy
> | Found container virtualization none.
> | Virtualization QEMU found in DMI (/sys/class/dmi/id/sys_vendor)
> | UML virtualization not found in /proc/cpuinfo. 
> | Virtualization XEN not found, /proc/xen does not exist
> | Virtualization found, CPUID=KVMKVMKVM
> | Found VM virtualization kvm
> | kvm

would it help (and be correct) if PID 1 in sbuild unshare mode would have the
"container" environment variable set to something? And/or if sbuild unshare
mode would create the file /run/systemd/container with some content?

I'd need input from somebody who knows how containers (if this is one) are
supposed to work. :)

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