Package: sysfsutils Version: 1.3.0-1 Severity: normal Tags: patch Settings in /etc/sysfs.conf are not applied on startup. The /etc/init.d/sysfsutils script fails to set the $MNTPATH variable and so exits right at the beginning. This is due to the -m option of /usr/bin/systool no longer existing since the last upload. ( Debian changelog : * Removed debian/patches/01_systool_mntpath.patch: Mounting sysfs under a directory other than /sys is not supported any more. )
So, as it seems /sys is the only supported location for sysfs, the following patch replaces the customizable $MNTPATH with a hardcoded /sys. ( Or alternatively you can set MNTPATH=/sys ) -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (50, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.12-m Locale: LANG=C, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Versions of packages sysfsutils depends on: ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an ii libsysfs1 1.3.0-1 interface library to sysfs sysfsutils recommends no packages. -- no debconf information
--- /etc/init.d/sysfsutils 2005-06-22 00:13:50.000000000 +0200 +++ /etc/init.d/sysfsutils.new 2005-06-28 00:09:23.000000000 +0200 @@ -5,8 +5,6 @@ CONFFILE=/etc/sysfs.conf -MNTPATH=$(/usr/bin/systool -m 2>/dev/null) || exit 0 - [ -r "$CONFFILE" ] || exit 0 case "$1" in @@ -18,8 +16,8 @@ $CONFFILE | ( while read key val; do if [ "$key" -a "$val" ]; then - if [ -f $MNTPATH/$key ]; then - echo $val > $MNTPATH/$key + if [ -f /sys/$key ]; then + echo $val > /sys/$key else echo "unknown attribute $key" fi