I think that this behavior is dangerous and it's only bootmisc typo: - [ -e /var/log/wtmp ] && mkutmp /var/log/wtmp + [ -e /var/log/wtmp ] || mkutmp /var/log/wtmp Patch follows. Is there a special program, that searches filesystem looking for wtmp records? I had no backup... :-/
Created attachment 207654 [details, diff] patch not to clean wtmp on every bootup
Can we please fix this disgraceful bug? OpenRC destroyed my more than 6 years old wtmp and I'm royally pissed off...
Roy, is openrc supposed to wipe this file on every reboot or is this a typo? Thanks, William
Created attachment 208600 [details] 0001-Don-t-wipe-wtmp.patch This version of the patch can be applied using git am. This is a regression that was introduced between 0.4.3 and 0.5.1. Thanks, William
can we please add files/9999/0003-dont-wipe-wtmp.patch to files/0.5.2/ as well?
(In reply to comment #1) > Created an attachment (id=207654) [details] > patch not to clean wtmp on every bootup > http://roy.marples.name/projects/openrc/changeset/ebb49805fca3d53b02c3eaa992e4bed49eca365c Thanks!
You are welcome :-)
This has been fixed upstream.