[Pkg-sysvinit-devel] Bug#352398: mount -t dummytype errors not
redirected
Robert Millan
rmh at aybabtu.com
Sat Feb 11 18:30:20 UTC 2006
Package: initscripts
Version: 2.86.ds1-12
Severity: minor
Tags: patch
The "-t dummytype" command that was just added prints errors during halt
process (on GNU/kFreeBSD). I think you meant to redirect the first and second
calls, and leave the third without redirection instead. This way you only see
errors when all three calls fail.
Patch:
--- /etc/init.d/umountroot~ 2006-02-10 04:53:15.000000000 +0000
+++ /etc/init.d/umountroot 2006-02-11 18:18:15.000000000 +0000
@@ -21,9 +21,9 @@
# mount -n -o remount,ro /
# will act on a bind mount of / if there is one.
# See #339023 and the comment in checkroot.sh
- mount $MOUNT_FORCE_OPT -n -o remount,ro -t dummytype dummydev / \
+ mount $MOUNT_FORCE_OPT -n -o remount,ro -t dummytype dummydev / 2>/dev/null \
|| mount $MOUNT_FORCE_OPT -n -o remount,ro dummydev / 2>/dev/null \
- || mount $MOUNT_FORCE_OPT -n -o remount,ro / 2>/dev/null
+ || mount $MOUNT_FORCE_OPT -n -o remount,ro /
ES=$?
[ "$VERBOSE" = no ] || log_action_end_msg $ES
}
-- System Information:
Debian Release: testing/unstable
Architecture: kfreebsd-i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: GNU/kFreeBSD 5.4-1-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Versions of packages initscripts depends on:
ii debianutils 2.15.2 Miscellaneous utilities specific t
ii e2fsprogs 1.38+1.39-WIP-2005.12.31-1 ext2 file system utilities and lib
ii libc0.1 2.3.5-12.1+kbsd.r1129 GNU C Library: Shared libraries an
ii lsb-base 3.0-15 Linux Standard Base 3.0 init scrip
initscripts recommends no packages.
-- no debconf information
More information about the Pkg-sysvinit-devel
mailing list