[Pkg-sysvinit-devel] Bug#677097: As far as I can see its a problem with find in /lib/init/bootclean.sh

Alan Chandler alan.chandler at hartley-consultants.com
Tue Jun 19 18:02:05 UTC 2012


I have been working through this to try and resolve my own problem

Inside /lib/init/bootclean.sh it has a function clean_all which is what 
mountall-bootclean.sh uses

This does

     clean /run "! -xtype d ! -name utmp ! -name innd.pid" || ES=1
     clean /run/lock "! -type d" || ES=1
     clean /run/shm "! -type d" || ES=1

But when I try and turn the first of these three commands into the find 
function it composes to delete the files without the -delete action 
inside /run

find . "! -xtype d ! -name utmp ! -name innd.pid"

I get

a) it lists all the files in all subdirectories
b) it finishes up with a line which says find: `! -xtype d ! -name utmp 
! -name innd.pid': No such file or directory

I assume this is the root of the problem.

However - I can't find much coherent documentation on find which 
explains why find gives that error message and then lists (and therefore 
presume also deletes) all the files
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alan_chandler.vcf
Type: text/x-vcard
Size: 194 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20120619/a95c9fb2/attachment.vcf>


More information about the Pkg-sysvinit-devel mailing list