https://bugzilla.novell.com/show_bug.cgi?id=481870 Summary: enhancement for boot.crypto & boot.crypto.functions Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: i686 OS/Version: openSUSE 11.1 Status: NEW Severity: Enhancement Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: 19972005@mail.ru QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009012700 SUSE/3.0.6-0.1.2 Firefox/3.0.6 Some services are locking files and/or mount points (NFS w/ some export options). If these files or mount points are below encrypted mount points the 'service boot.crypto stop' will always fail on related mount points. The solution is always stop related services before doing boot.crypto stop. The patch below adds the required hook in a manner similar to already used hooks for interactive start/stop runs: fs:~ # diff -u /etc/init.d/boot.crypto.original /etc/init.d/boot.crypto --- /etc/init.d/boot.crypto.original 2009-03-03 18:30:23.000000000 +0300 +++ /etc/init.d/boot.crypto 2009-03-04 15:11:27.000000000 +0300 @@ -79,6 +79,8 @@ foundit='' failed=0 + cutomize_prestop_hook + if test -s $CRYPTOTAB; then stop_cryptotab fi fs:~ # diff -u /lib/cryptsetup/boot.crypto.functions /lib/cryptsetup/boot.crypto.functions.original --- /lib/cryptsetup/boot.crypto.functions 2009-03-04 15:10:55.000000000 +0300 +++ /lib/cryptsetup/boot.crypto.functions.original 2009-03-03 18:40:23.000000000 +0300 @@ -1053,7 +1053,7 @@ } # -# Cutomize_{start,stop,prestop}_hook are for interactive usage only +# Cutomize_{start,stop}_hook are for interactive usage only # cutomize_start_hook () { @@ -1109,18 +1109,3 @@ 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 try-restart - done -} - Reproducible: Always -- 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.