This issue appeared in baselayout some versions ago and seems to remain present in the current version, so I figured it would be worth mentioning. Anyhow, let us examine /etc/init.d/halt.sh: lines 27 to 30 cause four temporary files to be created in section of the file (lines 24-73), but lines 64-69 show it is possible for at least one of them not to be removed by the end of the script: - if ${devices_totar} is not empty, two of the files will be deleted and one will hopefully be renamed to a non-temporary name, but ${devices_totar} itself will remain; - otherwise, ALL FOUR temporary files will remain. The attached patch fixes the problem.
Created attachment 70788 [details, diff] halt.sh-rmtmpfiles.diff
Great, I've just run upgrade and it turns out this HAS been fixed recently, some time between the time I patched my script and the time I managed to find a while to post it... Sorry about the fuss.