Bug#902350: systemd-container: /proc/1/environ doesn't contain "container=systemd-nspawn" info
Hideki Yamane
henrich at debian.org
Mon Jun 25 12:54:47 BST 2018
Package: systemd-container
Version: 239-1
Severity: normal
Dear Maintainer,
In debootstrap, it checks whether systemd-nspawn environment with
/proc/1/environ contains "container=systemd-nspawn"
> root at sid:~# cat /proc/1/environ
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bincontainer=systemd-nspawnTERM=screen-256colorHOME=/rootUSER=rootLOGNAME=rootcontainer_uuid=6659cd52-6753-46d8-8bdd-417fce7213bdNOTIFY_SOCKET=/run/systemd/nspawn/notifyroot at sid:~#
However, from version 239-1 it doesn't contain such information.
> # cat /proc/1/environ
> SHLVL=1HOME=/init=/sbin/initTERM=linuxdrop_caps=BOOT_IMAGE=/boot/vmlinuz-4.16.0-1-amd64PATH=/sbin:/usr/sbin:/bin:/usr/binPWD=/rootmnt=/rootroot at sid:~#
-- System Information:
Debian Release: buster/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.16.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8), LANGUAGE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages systemd-container depends on:
ii dbus 1.12.8-3
ii libacl1 2.2.52-3+b1
ii libbz2-1.0 1.0.6-8.1
ii libc6 2.27-3
ii libcurl3-gnutls 7.60.0-2
ii libgcrypt20 1.8.3-1
ii liblzma5 5.2.2-1.3
ii libseccomp2 2.3.3-2
ii libselinux1 2.8-1
ii systemd 239-1
ii zlib1g 1:1.2.11.dfsg-1
Versions of packages systemd-container recommends:
ii btrfs-progs 4.16.1-2
ii libnss-mymachines 239-1
systemd-container suggests no packages.
-- no debconf information
More information about the Pkg-systemd-maintainers
mailing list