[Pkg-sysvinit-devel] Bug#477995: checkfs.sh and checkroot.sh hang if the logfile can not be created

Dr. Markus Waldeck waldeck at gmx.de
Sat Apr 26 08:41:10 UTC 2008


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

The scripts should verify that the required diretory exists.

--- /etc/init.d/checkfs.sh      2008-04-25 20:08:25.000000000 +0000
+++ /etc/init.d/checkfs.sh_patched      2008-04-26 10:27:07.000000000 +0000
@@ -13,6 +13,8 @@
 # partition.
 PATH=/sbin:/bin:/usr/bin
 FSCK_LOGFILE=/var/log/fsck/checkfs
+FSCK_LOGDIR=`dirname $FSCK_LOGFILE`
+[ -e $FSCK_LOGDIR ] || mkdir -p -m 0755 $FSCK_LOGDIR
 [ "$FSCKFIX" ] || FSCKFIX=no
 . /lib/init/vars.sh

--- /etc/init.d/checkroot.sh    2008-04-25 20:08:25.000000000 +0000
+++ /etc/init.d/checkroot.sh_patched    2008-04-26 10:27:18.000000000 +0000
@@ -14,6 +14,8 @@
 # partition.
 PATH=/lib/init:/sbin:/bin:/usr/bin
 FSCK_LOGFILE=/var/log/fsck/checkroot
+FSCK_LOGDIR=`dirname $FSCK_LOGFILE`
+[ -e $FSCK_LOGDIR ] || mkdir -p -m 0755 $FSCK_LOGDIR
 [ "$FSCKFIX" ] || FSCKFIX=no
 [ "$SULOGIN" ] || SULOGIN=no
 . /lib/init/vars.sh


-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/?mc=sv_ext_mf@gmx





More information about the Pkg-sysvinit-devel mailing list