Move log copying to a lastaction scriptlet