Hi all, I prepared a small patch to init.d/bootmisc(.in), adding a few lines to check if a directory it’s considering for wiping is really on tmpfs; if so, no operation occurs. This assumes safely enough that bootmisc is run upon boot, so any tmpfs filesystem will be empty, no need to hunt for files to delete, and no useless “Wiping...” messages at the console. Reproducible: Always Steps to Reproduce:
Created attachment 211243 [details, diff] Adds function is_dir_tmpfs and calls to it in two spots
Oh, I forgot to mention the patch is to be applied *after* openrc-0.5.2-dont-wipe-wtmp.patch, because it includes one line patched by the latter.
Did you send these changes to upstream as well?
(In reply to comment #3) > Did you send these changes to upstream as well? Done: http://roy.marples.name/projects/openrc/ticket/206
the last statement would probably be clearer as: is_dir_tmpfs "$tmp" || cleanup_tmp_dir "$tmp"
Upstream refused the patch, with very good arguments. Closing.