https://bugzilla.novell.com/show_bug.cgi?id=481870 User grey-olli@ya.ru added comment https://bugzilla.novell.com/show_bug.cgi?id=481870#c2 --- Comment #2 from Olli Artemjev <grey-olli@ya.ru> 2009-03-06 06:41:30 MST --- oops.. my patch contain a typo: The string: /etc/init.d/$srv try-restart should be: /etc/init.d/$srv stop The right patch: fs:~ # diff -u /lib/cryptsetup/boot.crypto.functions.original /lib/cryptsetup/boot.crypto.functions --- /lib/cryptsetup/boot.crypto.functions.original 2009-03-03 18:40:23.000000000 +0300 +++ /lib/cryptsetup/boot.crypto.functions 2009-03-06 16:40:49.000000000 +0300 @@ -590,7 +590,7 @@ # if device is a regular file then it's an image if test -n "$loopdev" -o -f $device; then loopdev='' - for i in 0 1 2 3 4 5 6 7; do + for i in {0..31}; do if ! test -b "/dev/loop$i"; then continue fi @@ -1053,7 +1053,7 @@ } # -# Cutomize_{start,stop}_hook are for interactive usage only +# Cutomize_{start,stop,prestop}_hook are for interactive usage only # cutomize_start_hook () { @@ -1109,3 +1109,18 @@ done } +cutomize_prestop_hook () +{ + local srv + + test "$base" != "$link" && return 0 + test -s /etc/sysconfig/boot.crypto || return 0 + . /etc/sysconfig/boot.crypto + + for srv in $STOP_BEFORE_STOP ; do + test -n "$srv" || break + test -x /etc/init.d/$srv || continue + /etc/init.d/$srv stop + done +} + fs:~ # This also includes a dirty fix for bug #481872 . Sorry. %) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.