Your message dated Wed, 14 Feb 2018 22:22:53 +0000
with message-id <e1em5s1-0005ru...@fasolo.debian.org>
and subject line Bug#890436: fixed in systemd 237-3
has caused the Debian Bug report #890436,
regarding systemd-sysv-install uses ROOT variable from environment for chrooting
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 ow...@bugs.debian.org
immediately.)


-- 
890436: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890436
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: systemd
Version: 232-25+deb9u1
Severity: normal

systemd-sysv-install uses `ROOT` variable from environment when not set
via `-r` and tries to execute update-rc.d chrooted to the content of
this variable.

I'm am a bit unsure whether or not this really is a bug, but since it
was a total surprise for me when I found the cause of the issue and I
did not find any documentation about this behaviour, I think this is a
bug.

*Expected behaviour I didn't see*

root@Klappspaten:/# systemctl enable ssh
Synchronizing state of ssh.service with SysV service script with
/lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable ssh
Created symlink /etc/systemd/system/sshd.service →
/lib/systemd/system/ssh.service.

*Unexpected behaviour I saw*

When ROOT is e.g. set to /dev/sda1, this issue occurs:

root@Klappspaten:/# systemctl enable ssh
Synchronizing state of ssh.service with SysV service script with
/lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable ssh
chroot: cannot change root directory to "'/dev/sda1'": No such file or
directory

*Steps to reproduce the problem*

Simply set the environment variable and try to enable a service that is
also available as SysV-Init-Script

root@Klappspaten:/# export ROOT=/dev/sda1
root@Klappspaten:/# systemctl enable ssh
Synchronizing state of ssh.service with SysV service script with
/lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable ssh
chroot: cannot change root directory to "'/dev/sda1'": No such file or
directory

*Possible solution*

ROOT should be initialized with an empty value before reading command
line options.

*References*

https://github.com/systemd/systemd/issues/8180
https://salsa.debian.org/systemd-team/systemd/blob/master/debian/extra/systemd-sysv-install

-- Package-specific info:

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

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

Versions of packages systemd depends on:
ii  adduser         3.115
ii  libacl1         2.2.52-3+b1
ii  libapparmor1    2.11.0-3
ii  libaudit1       1:2.6.7-2
ii  libblkid1       2.29.2-1
ii  libc6           2.24-11+deb9u1
ii  libcap2         1:2.25-1
ii  libcryptsetup4  2:1.7.3-4
ii  libgcrypt20     1.7.6-2+deb9u2
ii  libgpg-error0   1.26-2
ii  libidn11        1.33-1
ii  libip4tc0       1.6.0+snapshot20161117-6
ii  libkmod2        23-2
ii  liblz4-1        0.0~r131-2+b1
ii  liblzma5        5.2.2-1.2+b1
ii  libmount1       2.29.2-1
ii  libpam0g        1.1.8-3.6
ii  libseccomp2     2.3.1-2.1
ii  libselinux1     2.6-3+b3
ii  libsystemd0     232-25+deb9u1
ii  mount           2.29.2-1
ii  procps          2:3.3.12-3
ii  util-linux      2.29.2-1

Versions of packages systemd recommends:
ii  dbus            1.10.24-0+deb9u1
ii  libpam-systemd  232-25+deb9u1

Versions of packages systemd suggests:
pn  policykit-1        <none>
pn  systemd-container  <none>
pn  systemd-ui         <none>

Versions of packages systemd is related to:
pn  dracut           <none>
ii  initramfs-tools  0.130
ii  udev             232-25+deb9u1

-- Configuration Files:
/etc/systemd/logind.conf changed [not included]

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: systemd
Source-Version: 237-3

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 890...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Biebl <bi...@debian.org> (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 ftpmas...@ftp-master.debian.org)


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

Format: 1.8
Date: Wed, 14 Feb 2018 23:07:17 +0100
Source: systemd
Binary: systemd systemd-sysv systemd-container systemd-journal-remote 
systemd-coredump systemd-tests libpam-systemd libnss-myhostname 
libnss-mymachines libnss-resolve libnss-systemd libsystemd0 libsystemd-dev udev 
libudev1 libudev-dev udev-udeb libudev1-udeb
Architecture: source
Version: 237-3
Distribution: unstable
Urgency: medium
Maintainer: Debian systemd Maintainers 
<pkg-systemd-maintain...@lists.alioth.debian.org>
Changed-By: Michael Biebl <bi...@debian.org>
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
 systemd-tests - tests for systemd
 udev       - /dev/ and hotplug management daemon
 udev-udeb  - /dev/ and hotplug management daemon (udeb)
Closes: 890423 890436
Changes:
 systemd (237-3) unstable; urgency=medium
 .
   [ Martin Pitt ]
   * debian/tests/boot-smoke: More robust journal checking.
     Also fail the test if calling journalctl fails, and avoid calling it
     twice. See https://github.com/systemd/systemd/pull/8032
   * Simplify PO template creation.
     Use the existing upstream build system instead of a manual call to
     `intltool-update` and `xgettext` to build systemd.pot. Remove the now
     obsolete intltool build dependency, but still explicitly keep gettext.
     (LP: #1707898)
   * Make systemd-sysv-install robust against existing $ROOT.
     Always initialize `$ROOT`, to avoid the script getting confused by an
     existing outside env variable. Also fix the `--root` option to actually
     work, the previous approach was conceptually broken due to how shell
     quoting works. Make the work with `set -u`. (Closes: #890436)
 .
   [ Felipe Sateler ]
   * Backport upstream patch fixing a wrong assert() call (Closes: #890423)
Checksums-Sha1:
 dbc1a05bd9a86990b5447659e85202eb1d3a5e82 4846 systemd_237-3.dsc
 4bc806ab01199a9b8f765d62c2dd521b347d0475 134712 systemd_237-3.debian.tar.xz
 4a19e2b7ede89f19a2ff10fcb5cf0780947924b4 9141 systemd_237-3_source.buildinfo
Checksums-Sha256:
 f5c745d185aba0f1af3a65186d75eafd0f8bead91af3056ed4ecf95a37a0ef4f 4846 
systemd_237-3.dsc
 b509fd6228ef8864653db573ccbe0094ea99e4a07295bbdf7c5fc8b505ba38c3 134712 
systemd_237-3.debian.tar.xz
 e77afbebb865df35f398857798deb19ab4059888a9c1147ae197e82a75b8bc25 9141 
systemd_237-3_source.buildinfo
Files:
 673d247a9b41c02f92b4113d7fab8dd7 4846 admin optional systemd_237-3.dsc
 3fd7a7251dfea1668c86f510d70b671d 134712 admin optional 
systemd_237-3.debian.tar.xz
 d0a12a8238d7ab9142a460eb36a941f1 9141 admin optional 
systemd_237-3_source.buildinfo

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

iQIzBAEBCAAdFiEECbOsLssWnJBDRcxUauHfDWCPItwFAlqEs04ACgkQauHfDWCP
ItwVHxAAnNMxDuo/A5tAm3Uam/I0TuhhhmsCZAAj88dcbhnrzovYBryemwc6NAac
Vh7CqLv/0ziLe8nc5i+0U4QWoKuegiNQPdS9DeJoYlWtcTkqUAsyhm5j0oqjIfoa
6erk6RyIQNIj+Gv7hQ2jOEmc7iLhkLDJAhjBmyyjeKYx5r/vw+zi6noiyUI4mUsk
IBI/Q8ejYZSdagb1fRsO4F7URoN4QabqWfJruJR61VLWAVEQh99eRPjRl0+nntkz
vUvqSd37boKQ7Nz0NMWKEe5daKt42oKSY10zGmiQyQzFYENzsWtEPKAbcQANywCh
EpZuYo/SYsjRAeYALVI4eRZUM7cY77I6l7LpkytTg/4UWbaD8ljHrj+s0vRtri4l
jGQmPojC8Am7eQd6ElzseBvrWFHEqy6xwgztBGBwdZIhJc49FwgoMvbUWkKd5VKp
IXm/xr3MXzgoEg9Eh84kEWYTZr2X+BjDYXpV63zKLB1XFo/1atDNY34SQMGYXrEh
8EZm2PeYnpDrc1E5xiccQ9HYVdIF6+xjy+uhpiYlM/GlYjecrHXqTsi4C9zgIbLZ
pfSmFPH2vBijP0Bc5K4JVF/gbrtuQZbHKM4mCi4oyTFnWILsBQAMifgNu2BRVD8h
kuaj7ftwc/bP6eVBZEt/Be4JKrHveYc8zmKDpbFguSGeO+QwiUw=
=Fj87
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to