On 2005-02-16 03:33:25 +0100, Steinar H. Gunderson wrote:
> First of all, which version are you upgrading from?

4.1.3-9

> Second, could you please try running
> 
>   sh -x -e /var/lib/dpkg/info/autofs.postinst configure <old-version>

dixsept:/home/vlefevre# sh -x -e /var/lib/dpkg/info/autofs.postinst configure 
4.1.3-9
+ '[' -f /etc/default/autofs ']'
+ . /etc/default/autofs
++ TIMEOUT=300
++ DISABLE_DIRECT=1
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/autofs.postinst 
configure 4.1.3-9
Stopping automounter: done.
Starting automounter: done.

and I need to type Ctrl-C.

>   sh -x -e /etc/init.d/autofs restart

Since there's a lot of output, I'm redirecting stderr and attaching
the result.

dixsept:/home/vlefevre# sh -x -e /etc/init.d/autofs restart 2> autofs.out
Stopping automounter: done.
Starting automounter: done.
dixsept:/home/vlefevre#

> and give what both print out? I can't really see a good reason why
> autofs upgrade should hang _after_ it has been successfully
> restarted...

I don't see either. /etc/init.d/autofs is working as expected.
But the autofs.postinst script doesn't.

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
+ FLAGS='defaults 21'
+ DAEMON=/usr/sbin/automount
++ basename /usr/sbin/automount
+ prog=automount
+ initdir=/etc/init.d
+ test -e /usr/sbin/automount
+ system=unknown
+ '[' -f /etc/debian_version ']'
+ system=debian
+ '[' debian = redhat ']'
+ '[' debian = debian ']'
+ thisscript=/etc/init.d/autofs
+ '[' '!' -f /etc/init.d/autofs ']'
+ PATH=/sbin:/usr/sbin:/bin:/usr/bin
+ export PATH
+ localoptions=
+ daemonoptions=
+ '[' debian = redhat ']'
+ '[' debian = debian ']'
+ TIMEOUT=300
+ DISABLE_DIRECT=1
+ DAEMON_EXIT_WAIT=20
+ '[' -f /etc/default/autofs ']'
+ . /etc/default/autofs
++ TIMEOUT=300
++ DISABLE_DIRECT=1
+ daemonoptions=' --timeout=300'
+ RETVAL=0
+ '[' debian = debian ']'
+ debian restart
+ set -e
+ case "$1" in
+ debian stop
+ set -e
+ case "$1" in
+ echo -n 'Stopping automounter:'
+ umount_loopback
++ LC_ALL=C
++ awk '!/^#/ && $1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts
+ loops=
++ LC_ALL=C
++ awk '!/^#/ && $1 ~ /^automount/ {print $2}' /proc/mounts
+ automounts='/local
/users
/cluster'
++ LC_ALL=C
++ awk '!/^#/ && $1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts
+ loopmnts=
+ any=0
++ ls /var/run/autofs/_cluster.pid /var/run/autofs/_local.pid 
/var/run/autofs/_users.pid
+ for file in '`ls /var/run/autofs/*.pid 2>/dev/null`'
+ '[' -e /var/run/autofs/_cluster.pid ']'
+ any=1
++ head -n 1 /var/run/autofs/_cluster.pid
+ pid=10380
++ ps -wwo cmd= 10380
++ sed -e 's,.* --pid-file=/var/run/autofs/\([^ ]*\)\.pid.*,\1,; s,_,/,g'
+ mnt=/cluster
+ start-stop-daemon --stop --quiet --retry USR2/20 --pidfile 
/var/run/autofs/_cluster.pid --exec /usr/sbin/automount
+ ret=0
+ case $ret in
+ rm -f /var/run/autofs/_cluster.pid
+ for file in '`ls /var/run/autofs/*.pid 2>/dev/null`'
+ '[' -e /var/run/autofs/_local.pid ']'
+ any=1
++ head -n 1 /var/run/autofs/_local.pid
+ pid=10247
++ ps -wwo cmd= 10247
++ sed -e 's,.* --pid-file=/var/run/autofs/\([^ ]*\)\.pid.*,\1,; s,_,/,g'
+ mnt=/local
+ start-stop-daemon --stop --quiet --retry USR2/20 --pidfile 
/var/run/autofs/_local.pid --exec /usr/sbin/automount
+ ret=0
+ case $ret in
+ rm -f /var/run/autofs/_local.pid
+ for file in '`ls /var/run/autofs/*.pid 2>/dev/null`'
+ '[' -e /var/run/autofs/_users.pid ']'
+ any=1
++ head -n 1 /var/run/autofs/_users.pid
+ pid=10312
++ ps -wwo cmd= 10312
++ sed -e 's,.* --pid-file=/var/run/autofs/\([^ ]*\)\.pid.*,\1,; s,_,/,g'
+ mnt=/users
+ start-stop-daemon --stop --quiet --retry USR2/20 --pidfile 
/var/run/autofs/_users.pid --exec /usr/sbin/automount
+ ret=0
+ case $ret in
+ rm -f /var/run/autofs/_users.pid
+ echo ' done.'
+ debian start
+ set -e
+ case "$1" in
+ echo -n 'Starting automounter:'
+ grep -q autofs /proc/filesystems
+ '[' -f /proc/modules ']'
+ lsmod
+ grep -q 'autofs[^4]'
++ getrawmounts
+++ getschemes
+++ grep -q '^automount:[ \t]' /etc/nsswitch.conf
+++ echo files
++ for scheme in '`getschemes`'
++ case "$scheme" in
++ '[' -z '' ']'
++ getfilemounts
++ '[' -f /etc/auto.master ']'
++ cat /etc/auto.master
++ sed -e '/^#/d' -e '/^$/d'
++ read auto_master_in
+++ echo +auto_master
+++ grep '^+'
++ '[' +auto_master = '' ']'
+++ cat /etc/auto.master
+++ grep '^\+'
+++ sed -e '/^#/d' -e '/^$/d'
++ for nismap in '`cat /etc/auto.master | grep '\''^\+'\'' |
                        sed -e '\''/^#/d'\'' -e '\''/^$/d'\''`'
+++ echo +auto_master
+++ sed -e 's/^\+//'
++ catnismap auto_master
++ '[' -z auto_master ']'
++ map=auto_master
++ /usr/bin/ypcat -k auto_master
++ sed -e '/^#/d' -e '/^$/d'
++ read auto_master_in
+++ echo /cluster /etc/cluster.map
+++ grep '^+'
++ '[' '' = '' ']'
++ echo /cluster /etc/cluster.map
++ read auto_master_in
++ filescheme=1
++ export filescheme
+ '[' -z '/local local_map
/users users_map
/cluster /etc/cluster.map' ']'
+ '[' '!' -e /var/run/autofs ']'
+ getmounts
+ local LC_ALL=C
+ export LC_ALL
+ knownmaps=' '
+ getrawmounts
++ getschemes
++ grep -q '^automount:[ \t]' /etc/nsswitch.conf
++ echo files
+ for scheme in '`getschemes`'
+ case "$scheme" in
+ '[' -z '' ']'
+ getfilemounts
+ '[' -f /etc/auto.master ']'
+ cat /etc/auto.master
+ sed -e '/^#/d' -e '/^$/d'
+ read auto_master_in
+ read dir map options
+ read cmd rest
++ echo +auto_master
++ grep '^+'
+ '[' +auto_master = '' ']'
++ cat /etc/auto.master
++ grep '^\+'
++ sed -e '/^#/d' -e '/^$/d'
+ for nismap in '`cat /etc/auto.master | grep '\''^\+'\'' |
                        sed -e '\''/^#/d'\'' -e '\''/^$/d'\''`'
++ echo +auto_master
++ sed -e 's/^\+//'
+ catnismap auto_master
+ '[' -z auto_master ']'
+ map=auto_master
+ /usr/bin/ypcat -k auto_master
+ sed -e '/^#/d' -e '/^$/d'
++ echo /local
++ sed -e 's/\/*$//'
+ read auto_master_in
++ echo /cluster /etc/cluster.map
++ grep '^+'
+ '[' '' = '' ']'
+ echo /cluster /etc/cluster.map
+ read auto_master_in
+ filescheme=1
+ export filescheme
+ dir=/local
+ '[' '!' -z local_map -a local_map = -hosts ']'
++ echo /local
++ grep -E '^/-'
+ '[' 1 -eq 1 -a x '!=' x ']'
++ echo local_map
++ cut -c1
+ '[' '!' -z /local -a '!' -z local_map -a xl '!=' x- ']'
+ : echo DAEMONOPTIONS OPTIONS --timeout=300
+ startupoptions=
+ echo ''
+ grep -qE -- '\B-(t\b|-timeout\b=)'
+ echo ' --timeout=300'
+ grep -q -- -t
++ echo --timeout=300
++ sed 's/.*--*t\(imeout\)*[ \t=]*\([0-9][0-9]*\).*$/\2/g'
+ startupoptions=--timeout=300
+ echo ' --timeout=300 '
+ grep -qE -- '\B-(g\b|-ghost\b)'
+ echo ''
+ grep -qE -- '\B-browse\b'
+ echo ' --timeout=300 '
+ grep -qE -- '\B-(v\b|-verbose\b)'
+ echo ' --timeout=300 '
+ grep -qE -- '\B-(d\b|-debug\b)'
++ echo ' --timeout=300 '
++ sed 's/-\(t[^0-9]*\|-timeout\)[ \t=]*\([0-9][0-9]*\)//g'
++ sed 's/-\(g\b\|-ghost\b\)//g'
++ sed 's/-\(v\b\|-verbose\b\)//g'
++ sed 's/-\(d\b\|-debug\b\)//g'
++ sed 's/-\b\(no\)\?browse\b//g'
+ mapoptions='  '
++ echo local_map
++ cut -f1 -d:
+ maptype=local_map
+ '[' local_map = local_map ']'
+ '[' local_map = hesiod -o local_map = userhome ']'
+ '[' local_map = multi ']'
++ echo local_map
++ grep -q '^/'
+ '[' -x /etc/local_map ']'
++ echo local_map
++ grep -q '^/'
+ '[' -f /etc/local_map ']'
+ maptype=yp
+ '[' '' = 0 ']'
++ basename local_map
++ sed -e 's/^auto_home/auto.home/' -e 's/^auto_mnt/auto.mnt/'
+ map=local_map
++ echo local_map
++ cut -f2- -d:
+ map=local_map
+ : echo STARTUPOPTIONS --timeout=300
+ : echo DIR /local
+ : echo MAPTYPE yp
+ : echo MAP local_map
+ : echo MAPOPTIONS
+ : echo LOCALOPTIONS
+ NEWOPTIONS=
+ mapoptions=
+ echo '/usr/sbin/automount --timeout=300 /local yp local_map  '
+ sed -e 's/    / /g' -e 's/  */ /g'
++ echo --timeout=300 /local yp local_map
++ sed 's/^.* \(\/[^ ]*\) [A-Za-z].*$/\1/'
+ mnt=/local
++ echo /local
++ sed s,/,_,g
+ pidfile=/var/run/autofs/_local.pid
+ start-stop-daemon --start --pidfile /var/run/autofs/_local.pid --quiet --exec 
/usr/sbin/automount -- --pid-file=/var/run/autofs/_local.pid --timeout=300 
/local yp local_map
+ '[' 0 -ne 0 ']'
+ read cmd rest
+ : echo ------------------------
+ knownmaps=' /local/  '
+ read dir map options
++ echo /users
++ sed -e 's/\/*$//'
+ dir=/users
+ '[' '!' -z users_map -a users_map = -hosts ']'
++ echo /users
++ grep -E '^/-'
+ '[' 1 -eq 1 -a x '!=' x ']'
+ for knownmap in '$knownmaps'
++ echo /users/
++ grep '^/local/'
++ echo /local/
++ grep '^/users/'
+ '[' '' '!=' '' -o '' '!=' '' ']'
++ echo users_map
++ cut -c1
+ '[' '!' -z /users -a '!' -z users_map -a xu '!=' x- ']'
+ : echo DAEMONOPTIONS OPTIONS --timeout=300
+ startupoptions=
+ echo ''
+ grep -qE -- '\B-(t\b|-timeout\b=)'
+ echo ' --timeout=300'
+ grep -q -- -t
++ echo --timeout=300
++ sed 's/.*--*t\(imeout\)*[ \t=]*\([0-9][0-9]*\).*$/\2/g'
+ startupoptions=--timeout=300
+ echo ' --timeout=300 '
+ grep -qE -- '\B-(g\b|-ghost\b)'
+ echo ''
+ grep -qE -- '\B-browse\b'
+ echo ' --timeout=300 '
+ grep -qE -- '\B-(v\b|-verbose\b)'
+ echo ' --timeout=300 '
+ grep -qE -- '\B-(d\b|-debug\b)'
++ echo ' --timeout=300 '
++ sed 's/-\(t[^0-9]*\|-timeout\)[ \t=]*\([0-9][0-9]*\)//g'
++ sed 's/-\(v\b\|-verbose\b\)//g'
++ sed 's/-\(d\b\|-debug\b\)//g'
++ sed 's/-\b\(no\)\?browse\b//g'
++ sed 's/-\(g\b\|-ghost\b\)//g'
+ mapoptions='  '
++ echo users_map
++ cut -f1 -d:
+ maptype=users_map
+ '[' users_map = users_map ']'
+ '[' users_map = hesiod -o users_map = userhome ']'
+ '[' users_map = multi ']'
++ grep -q '^/'
++ echo users_map
+ '[' -x /etc/users_map ']'
++ echo users_map
++ grep -q '^/'
+ '[' -f /etc/users_map ']'
+ maptype=yp
+ '[' '' = 0 ']'
++ basename users_map
++ sed -e 's/^auto_home/auto.home/' -e 's/^auto_mnt/auto.mnt/'
+ map=users_map
++ echo users_map
++ cut -f2- -d:
+ map=users_map
+ : echo STARTUPOPTIONS --timeout=300
+ : echo DIR /users
+ : echo MAPTYPE yp
+ : echo MAP users_map
+ : echo MAPOPTIONS
+ : echo LOCALOPTIONS
+ NEWOPTIONS=
+ mapoptions=
+ echo '/usr/sbin/automount --timeout=300 /users yp users_map  '
+ sed -e 's/    / /g' -e 's/  */ /g'
++ echo --timeout=300 /users yp users_map
++ sed 's/^.* \(\/[^ ]*\) [A-Za-z].*$/\1/'
+ : echo ------------------------
+ knownmaps=' /users/  /local/  '
+ read dir map options
++ echo /cluster
++ sed -e 's/\/*$//'
+ dir=/cluster
+ '[' '!' -z /etc/cluster.map -a /etc/cluster.map = -hosts ']'
++ echo /cluster
++ grep -E '^/-'
+ '[' 1 -eq 1 -a x '!=' x ']'
+ for knownmap in '$knownmaps'
++ echo /cluster/
++ grep '^/users/'
++ echo /users/
++ grep '^/cluster/'
+ '[' '' '!=' '' -o '' '!=' '' ']'
+ for knownmap in '$knownmaps'
++ echo /cluster/
++ grep '^/local/'
++ echo /local/
++ grep '^/cluster/'
+ '[' '' '!=' '' -o '' '!=' '' ']'
++ echo /etc/cluster.map
++ cut -c1
+ '[' '!' -z /cluster -a '!' -z /etc/cluster.map -a x/ '!=' x- ']'
+ : echo DAEMONOPTIONS OPTIONS --timeout=300
+ startupoptions=
+ echo ''
+ grep -qE -- '\B-(t\b|-timeout\b=)'
+ echo ' --timeout=300'
+ grep -q -- -t
++ echo --timeout=300
++ sed 's/.*--*t\(imeout\)*[ \t=]*\([0-9][0-9]*\).*$/\2/g'
+ startupoptions=--timeout=300
+ echo ' --timeout=300 '
+ grep -qE -- '\B-(g\b|-ghost\b)'
+ echo ''
+ grep -qE -- '\B-browse\b'
+ echo ' --timeout=300 '
+ grep -qE -- '\B-(v\b|-verbose\b)'
+ echo ' --timeout=300 '
+ grep -qE -- '\B-(d\b|-debug\b)'
++ echo ' --timeout=300 '
++ sed 's/-\(t[^0-9]*\|-timeout\)[ \t=]*\([0-9][0-9]*\)//g'
++ sed 's/-\(g\b\|-ghost\b\)//g'
++ sed 's/-\(v\b\|-verbose\b\)//g'
++ sed 's/-\(d\b\|-debug\b\)//g'
+ mnt=/users
++ echo /users
++ sed 's/-\b\(no\)\?browse\b//g'
++ sed s,/,_,g
+ pidfile=/var/run/autofs/_users.pid
+ start-stop-daemon --start --pidfile /var/run/autofs/_users.pid --quiet --exec 
/usr/sbin/automount -- --pid-file=/var/run/autofs/_users.pid --timeout=300 
/users yp users_map
+ '[' 0 -ne 0 ']'
+ read cmd rest
+ mapoptions='  '
++ echo /etc/cluster.map
++ cut -f1 -d:
+ maptype=/etc/cluster.map
+ '[' /etc/cluster.map = /etc/cluster.map ']'
+ '[' /etc/cluster.map = hesiod -o /etc/cluster.map = userhome ']'
+ '[' /etc/cluster.map = multi ']'
++ echo /etc/cluster.map
++ grep -q '^/'
+ '[' -x /etc/cluster.map ']'
+ '[' -x /etc//etc/cluster.map ']'
++ echo /etc/cluster.map
++ grep -q '^/'
+ '[' -f /etc/cluster.map ']'
+ maptype=file
++ echo /etc/cluster.map
++ cut -f2- -d:
+ map=/etc/cluster.map
+ : echo STARTUPOPTIONS --timeout=300
+ : echo DIR /cluster
+ : echo MAPTYPE file
+ : echo MAP /etc/cluster.map
+ : echo MAPOPTIONS
+ : echo LOCALOPTIONS
+ NEWOPTIONS=
+ mapoptions=
+ echo '/usr/sbin/automount --timeout=300 /cluster file /etc/cluster.map  '
+ sed -e 's/    / /g' -e 's/  */ /g'
++ echo --timeout=300 /cluster file /etc/cluster.map
+ : echo ------------------------
+ knownmaps=' /cluster/  /users/  /local/  '
+ read dir map options
++ sed 's/^.* \(\/[^ ]*\) [A-Za-z].*$/\1/'
+ mnt=/cluster
++ echo /cluster
++ sed s,/,_,g
+ pidfile=/var/run/autofs/_cluster.pid
+ start-stop-daemon --start --pidfile /var/run/autofs/_cluster.pid --quiet 
--exec /usr/sbin/automount -- --pid-file=/var/run/autofs/_cluster.pid 
--timeout=300 /cluster file /etc/cluster.map
+ '[' 0 -ne 0 ']'
+ read cmd rest
+ echo ' done.'
+ exit 0

Reply via email to