[Pkg-sysvinit-devel] Bug#546048: As a start, this helped me

Dominique Brazziel dbrazziel at snet.net
Sat Oct 3 15:20:12 UTC 2009


	I defined a new log file to hold pre-migration check messages.
Here is a little patch:


--- sysv-rc.postinst.orig	2009-10-03 11:04:38.000000000 -0400
+++ sysv-rc.postinst	2009-10-03 11:07:07.000000000 -0400
@@ -8,6 +8,7 @@
 now=`date +%Y%m%dT%H%M`
 logdir=/var/lib/insserv
 logfile="$logdir/run-$now.log"
+logprefail="$logdir/premigcheck.log"
 flagfile=/etc/init.d/.legacy-bootordering
 
 # Make sure insserv is in path
@@ -52,6 +53,9 @@
     else
 	PROBLEMATIC="$PROBLEMATIC, $msg"
     fi
+    
+    # Save a copy of all problematic messages on 'logprefail'
+    echo "$msg" >> $logprefail
 }
 
 is_unsafe_to_activate() {







More information about the Pkg-sysvinit-devel mailing list