[OS-BUILD PATCHv2 2/2] redhat: replace inline awk script with genlog.py call