The tmp-wiping code does an initial rm -rf (/etc/init.d/bootmisc line 35), and then follows up with a find that excludes a few directories worth preserving. It's currently written # Faster than find rm -rf -- [b-ikm-pr-zA-Z0-9\.]* find ${startopts} ! -name . \ ! -path "./lost+found" \ ! -path "./lost+found/*" \ ! -path "./quota.user" \ ! -path "./quota.user/*" \ [snip] ! -path "./.private" \ ! -path "./.private/*" \ -exec rm -rf {} \; The initial rm -rf pattern seems silly. First, it explicitly includes ., which turns out not to work (try it with echo in your home directory!), and second it's a somewhat painful way to make an inverted set, something that sh has long supported. How about simplifying and clarifying it to rm -rf -- [^lqaj.]*
Fixed here http://roy.marples.name/projects/openrc/changeset/1511 Thanks
I don't see a need to patch this myself (IOW, wait until next release) Thanks for your contribution.