Your message dated Fri, 06 Jul 2018 14:32:10 +0000
with message-id <[email protected]>
and subject line Bug#895798: fixed in systemd 232-25+deb9u4
has caused the Debian Bug report #895798,
regarding /usr/bin/systemd-nspawn: systemd-nspawn doesn't recognise -E, does 
recognise --setenv
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
895798: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=895798
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: systemd-container
Version: 232-25+deb9u3
Severity: minor
File: /usr/bin/systemd-nspawn

Dear Maintainer,

I wanted to set an environment variable inside the container, when
running a command with systemd-nspawn. -E doesn't work, --setenv does.

First, to show that the container works:

    $ sudo systemd-nspawn -D tmp env
    Spawning container tmp on /scratch/liw/systrees/tmp.
    Press ^] three times within 1s to kill container.
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    container=systemd-nspawn
    TERM=xterm-256color
    HOME=/root
    USER=root
    LOGNAME=root
    container_uuid=2f016265-dfad-46e0-944e-7708b7f44bef
    NOTIFY_SOCKET=/run/systemd/nspawn/notify
    Container tmp exited successfully.

Second, set environment variable with -E: it doesn't work.

    $ sudo systemd-nspawn -D tmp -E FOO=bar env
    systemd-nspawn: invalid option -- 'E'

Third, do it with --setenv, and it works:

    $ sudo systemd-nspawn -D tmp --setenv FOO=bar env
    Spawning container tmp on /scratch/liw/systrees/tmp.
    Press ^] three times within 1s to kill container.
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    container=systemd-nspawn
    TERM=xterm-256color
    HOME=/root
    USER=root
    LOGNAME=root
    container_uuid=2f016265-dfad-46e0-944e-7708b7f44bef
    NOTIFY_SOCKET=/run/systemd/nspawn/notify
    FOO=bar
    Container tmp exited successfully.

I'd be OK with removing -E from the docs, or to make it work. I can
live with writing the option as --setenv.

-- System Information:
Debian Release: 9.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-6-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages systemd-container depends on:
ii  dbus             1.10.26-0+deb9u1
ii  libacl1          2.2.52-3+b1
ii  libblkid1        2.29.2-1+deb9u1
ii  libbz2-1.0       1.0.6-8.1
ii  libc6            2.24-11+deb9u3
ii  libcurl3-gnutls  7.52.1-5+deb9u5
ii  libgcrypt20      1.7.6-2+deb9u2
ii  libip4tc0        1.6.0+snapshot20161117-6
ii  liblzma5         5.2.2-1.2+b1
ii  libseccomp2      2.3.1-2.1
ii  libselinux1      2.6-3+b3
ii  systemd          232-25+deb9u3
ii  zlib1g           1:1.2.8.dfsg-5

Versions of packages systemd-container recommends:
ii  btrfs-progs        4.7.3-1
ii  btrfs-tools        4.7.3-1
ii  libnss-mymachines  232-25+deb9u3

systemd-container suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: systemd
Source-Version: 232-25+deb9u4

We believe that the bug you reported is fixed in the latest version of
systemd, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Biebl <[email protected]> (supplier of updated systemd package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 13 Jun 2018 22:20:36 +0200
Source: systemd
Binary: systemd systemd-sysv systemd-container systemd-journal-remote 
systemd-coredump libpam-systemd libnss-myhostname libnss-mymachines 
libnss-resolve libnss-systemd libsystemd0 libsystemd-dev udev libudev1 
libudev-dev udev-udeb libudev1-udeb
Architecture: source
Version: 232-25+deb9u4
Distribution: stretch
Urgency: medium
Maintainer: Debian systemd Maintainers 
<[email protected]>
Changed-By: Michael Biebl <[email protected]>
Description:
 libnss-myhostname - nss module providing fallback resolution for the current 
hostname
 libnss-mymachines - nss module to resolve hostnames for local container 
instances
 libnss-resolve - nss module to resolve names via systemd-resolved
 libnss-systemd - nss module providing dynamic user and group name resolution
 libpam-systemd - system and service manager - PAM module
 libsystemd-dev - systemd utility library - development files
 libsystemd0 - systemd utility library
 libudev-dev - libudev development files
 libudev1   - libudev shared library
 libudev1-udeb - libudev shared library (udeb)
 systemd    - system and service manager
 systemd-container - systemd container/nspawn tools
 systemd-coredump - tools for storing and retrieving coredumps
 systemd-journal-remote - tools for sending and receiving remote journal logs
 systemd-sysv - system and service manager - SysV links
 udev       - /dev/ and hotplug management daemon
 udev-udeb  - /dev/ and hotplug management daemon (udeb)
Closes: 892829 895798 897938
Changes:
 systemd (232-25+deb9u4) stretch; urgency=medium
 .
   * core/load-fragment: Add RemoveIPC=
     Allow RemoveIPC= to be set in the unit file not only via D-Bus.
     (Closes: #892829)
   * nspawn: Add missing -E to getopt_long.
     The -E alias for --setenv in systemd-nspawn was not working as
     documented. This commit fixes that by adding -E to getopt_long.
     (Closes: #895798)
   * login: Respect --no-wall when cancelling a shutdown request
     (Closes: #897938)
Checksums-Sha1:
 35f8b951d74b2fcc7423498aa6e8c54344058e37 4797 systemd_232-25+deb9u4.dsc
 18b33c8cac0dd8d1a913180698cbcd27ebdd6554 209400 
systemd_232-25+deb9u4.debian.tar.xz
 74f658db4353a36506024d0f6f295e0f40551e51 9677 
systemd_232-25+deb9u4_source.buildinfo
Checksums-Sha256:
 88aff99e39acdf56fec518f994557c2f7e97b900f231ddcafa26d806998ec2d3 4797 
systemd_232-25+deb9u4.dsc
 1687f3b629a6fc21462e04ff0da3f5fe68b81298f6ec0a795246cf3e284baaf8 209400 
systemd_232-25+deb9u4.debian.tar.xz
 9ae36dcd77f0efa95650eb6e6db338662961627a5d3f520bac0e5b11adcf2ccc 9677 
systemd_232-25+deb9u4_source.buildinfo
Files:
 a9746a7a16797caa0c84597423ede100 4797 admin optional systemd_232-25+deb9u4.dsc
 41c680aa706e4dabc7b5422c4340e794 209400 admin optional 
systemd_232-25+deb9u4.debian.tar.xz
 a1d9502b5eaed3692129ef030e822a8e 9677 admin optional 
systemd_232-25+deb9u4_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEECbOsLssWnJBDRcxUauHfDWCPItwFAls+lwIACgkQauHfDWCP
Ity6wQ//cCFcbHMx3nNVMb+M/7XXzTQfBRzJmMybZdZ+Sled7BOr8bdgxcEEVI37
8w80qLBJ0079I4c595GYDYejVaTbhEPjDS4a0uySnvTKnglY3AcAvYewn6iRN/0i
LCeuvvY72GG97ZzOI6Orkj3wDqwawW7XBKq8LGQnlLA9MpblLJ/qAKdOQPaedxg3
rsz0uacsXVnPrx49LMjld+VhfF/s0398aVGMlEp4qlE9iz19kGRmNim+fq5kzSgB
zVmlSqdk/9+sMm8pYRLzImeITkOUhXCnSsLPkvvstXYTIIL5A8y6wyR0VO/WRg0s
oeJis46ubpaxYNmcwBrla0LocqLnnoeRlrmc4NTHmW+ZvIAuEKIn39IXompDrW/V
mhQIys86zXtJtOQxV2E0sxJxyahN5yZk+AhHI8EBj80GmWQrz4DDnJRzfGG7Ncgp
pI//e85vDjPZFv8wjpdcAH4DqSNGEquRSAXCKiN2+NjNG0dLExbxG11iZlmXl6YV
dCTqqpJ58ZAe0NkyYh2f46obFpY7U65xyQQ8mNymk0i6BZKKE0/l0PZL+qbggBB6
Dl+6gEzJ7xP3oKAqFF4XFJbOtJR7S9er3NEL/CfUYhmngalCQd4xDQysjIL3r7ZP
MZS/nsz1yIYQGC5g2Jy9+P6R0GuP2kRBm9UlDtJvnAGZgsTqzcY=
=50ZL
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Pkg-systemd-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-systemd-maintainers

Reply via email to