[Pkg-sysvinit-devel] Bug#529805: initscripts: umountfs: pioodl() is not the function you want.

Tim Phipps tim at phipps-hutton.freeserve.co.uk
Thu May 21 15:52:04 UTC 2009


Package: initscripts
Version: 2.86.ds1-61
Severity: normal


I looks like the pioodl() function is an attempt to run "sort -r" on
/proc/mounts. I think a better purpose would be to reverse the lines in
that file. Either you can use the program /usr/bin/tac or the following:

rev() {
  local line
  if read line
  then
    rev
    echo "$line"
  fi
}

In fact looking again at /etc/init.d/umountfs if you add to the TMPFS_MTPTS
and REG_MTPTS strings in prepending mode you will get the reversal for free:

TMPFS_MTPTS="$MPTS $TMPFS_MTPTS"

This might also fix #481546.

-- System Information:
Debian Release: 5.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages initscripts depends on:
ii  debianutils                  2.30        Miscellaneous utilities specific t
ii  e2fsprogs                    1.41.3-1    ext2/ext3/ext4 file system utiliti
ii  libc6                        2.7-18      GNU C Library: Shared libraries
ii  lsb-base                     3.2-20      Linux Standard Base 3.2 init scrip
ii  mount                        2.13.1.1-1  Tools for mounting and manipulatin
ii  sysvinit-utils               2.86.ds1-61 System-V-like utilities

Versions of packages initscripts recommends:
ii  psmisc                        22.6-1     Utilities that use the proc filesy

initscripts suggests no packages.

-- no debconf information





More information about the Pkg-sysvinit-devel mailing list