[klibc] "Destructive" utilities

H. Peter Anvin hpa at zytor.com
Tue Jun 8 00:42:04 PDT 2004


Alexander E. Patrakov wrote:
> H. Peter Anvin wrote:
> (btw no need to CC: me, I am subscribed)
> 
>> I just added a "nuke" program, which does the equivalent of "rm -rf".  
>> Do we also need unlink/rmdir?
> 
> 
> I don't need them anymore, but someone else may need them. Attached.
> 
>> The nuke program is in klibc-0.122.
> 
> 
> Thanks. One bug though: it deletes the "chroot" binary. I was able to do 
> a full cleanup of initramfs using "nuke", but my "init" script 
> (attached) relies upon /bin/chroot.static being present on the real root 
> fs.
> 
> So what's needed is not "nuke", but a "nuke+chroot" program.
> 

I just released klibc-0.125 with a new utility "run-init", which I 
*THINK* is what you want.

	-hpa



More information about the klibc mailing list