Package: smartmontools Version: 5.37-5 Severity: wishlist Hello,
starting with some versions ago /var/lib/dpkg/info/smartmontools.postinst starts smatrmontools on package installations or upgrades. This fails in cases where the package is upgraded within a chroot environment. Please do not start the daemon when a chroot environment is detected. Udev, for example, uses the following code to detect a chroot environemnt in its postinst: chrooted() { if [ "$(stat -c %d/%i /)" = "$(stat -Lc %d/%i /proc/1/root 2>/dev/null)" ]; then # the devicenumber/inode pair of / is the same as that of /sbin/init's # root, so we're *not* in a chroot and hence return false. return 1 fi echo "A chroot environment has been detected, udev not started." return 0 } regards, Jörg -- Package-specific info: Ouput of /usr/share/bug/smartmontools: CONFIG_IDE_TASK_IOCTL=y -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.21-rc5 (PREEMPT) Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages smartmontools depends on: ii debianutils 2.18 Miscellaneous utilities specific t ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries ii libgcc1 1:4.1.1-21 GCC support library ii libstdc++6 4.1.1-21 The GNU Standard C++ Library v3 ii lsb-base 3.1-23.1 Linux Standard Base 3.1 init scrip Versions of packages smartmontools recommends: ii mailutils [mailx] 1:1.1+dfsg1-3.1 GNU mailutils utilities for handli -- no debconf information