[Pkg-sysvinit-devel] Bug#677420: "Usage: mountpoint" output after activating swap

Oskar Liljeblad oskar at osk.mine.nu
Wed Jun 13 20:53:46 UTC 2012


Package: initscripts
Version: 2.88dsf-22.1
Severity: wishlist

This is happens during boot (from my /var/log/boot):

Wed Jun 13 22:34:41 2012: [....] Activating swap...^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0cdone.
Wed Jun 13 22:34:41 2012: Usage: mountpoint [-q] [-d] [-x] path
Wed Jun 13 22:34:41 2012: [....] Checking root file system...fsck from util-linux 2.20.1

My only guess is that $rootdev might be unset in /etc/init.d/checkroot.sh line 89:

[..]
                        log_daemon_msg "Activating swap"
                        swapon -a -v
                        log_end_msg $?
                fi
        fi

        #
        # Does the root device in /etc/fstab match with the actual device ?
        # If not we try to use the /dev/root alias device, and if that
        # fails we create a temporary node in /run.
        #
        if [ "$rootcheck" = yes ]
        then
                ddev="$(mountpoint -qx $rootdev)"
                rdev="$(mountpoint -d /)"
                if [ "$ddev" != "$rdev" ] && [ "$ddev" != "4:0" ]
                then
                        if [ "$(mountpoint -qx /dev/root)" = "4:0" ]
                        then
                                rootdev=/dev/root
[..]

I'll try to look into this later on.

Regards,

Oskar

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages initscripts depends on:
ii  coreutils       8.13-3.2
ii  debianutils     4.3.1
ii  file-rc         0.8.12
ii  libc6           2.13-33
ii  lsb-base        4.1+Debian6
ii  mount           2.20.1-5
ii  sysvinit-utils  2.88dsf-22.1
ii  ucf             3.0025+nmu3

Versions of packages initscripts recommends:
ii  e2fsprogs  1.42.2-2
ii  psmisc     22.16-1

initscripts suggests no packages.

-- Configuration Files:
/etc/init.d/bootlogd changed:
PATH=/sbin:/bin  # No remote fs at start
DAEMON=/sbin/bootlogd
[ -x "$DAEMON" ] || exit 0
NAME=bootlogd
DESC="boot logger"
BOOTLOGD_OPTS="-r -c"
. /lib/init/vars.sh
. /lib/lsb/init-functions
SCRIPTNAME=${0##*/}
SCRIPTNAME=${SCRIPTNAME#[SK]??}
ACTION="$1"
case "$0" in
  *stop-bootlog*)
	[ "$ACTION" = start ] && ACTION=stop
	;;
esac
case "$ACTION" in
  start)
  	# PATH is set above
	[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
	if [ -d /proc/1/. ]
	then
		umask 027
		start-stop-daemon --start --quiet --exec $DAEMON -- \
			$BOOTLOGD_OPTS
		ES=$?
	else
		$DAEMON $BOOTLOGD_OPTS
		ES=$?
	fi
	[ "$VERBOSE" != no ] && log_end_msg $ES
	;;
  stop)
	PATH=/bin:/sbin:/usr/bin:/usr/sbin
	[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
	start-stop-daemon --oknodo --stop --quiet --exec $DAEMON
	ES=$?
	sleep 1
	[ "$VERBOSE" != no ] && log_end_msg $ES
	if [ -f /var/log/boot ] && [ -f /var/log/boot~ ]
	then
		[ "$VERBOSE" = no ] || log_action_begin_msg "Moving boot log file"
		# bootlogd writes to boot, making backup at boot~
		cd /var/log && {
			chgrp adm boot || :
			savelog -q -p -c 5 boot \
			&& mv boot.0 boot \
			&& mv boot~ boot.0
		}
		ES=$?
		[ "$VERBOSE" = no ] || log_action_end_msg $ES
	fi
	;;
  restart|force-reload)
 	/etc/init.d/bootlogd stop
 	/etc/init.d/bootlogd start
	;;
  status)
	status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
	;;
  *)
	echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload|status}" >&2
	exit 3
	;;
esac
:


-- no debconf information





More information about the Pkg-sysvinit-devel mailing list