hooks: Integrate cleaned-up changes to opensuse from production

Rewritten sed expression to fix the configuration in a single pass.