)]}'
{"diskimage_builder/elements/redhat-common/finalise.d/01-clean-old-kernels":[{"author":{"_account_id":24245,"name":"Harald Jensås","email":"hjensas@redhat.com","username":"harald.jensas"},"change_message_id":"e745587de4e3c0c5368655a33bbdf6fa4502e4f1","unresolved":false,"context_lines":[{"line_number":18,"context_line":"    #  http://dnf.readthedocs.org/en/latest/cli_vs_yum.html"},{"line_number":19,"context_line":"    _old_kernels\u003d\"$(dnf repoquery --installonly --latest-limit\u003d-1 -q)\""},{"line_number":20,"context_line":"    if [[ -n \"${_old_kernels}\" ]]; then"},{"line_number":21,"context_line":"        dnf remove -y --setopt\u003dprotect_running_kernel\u003dFalse ${_old_kernels}"},{"line_number":22,"context_line":"    fi"},{"line_number":23,"context_line":"else"},{"line_number":24,"context_line":"    install-packages yum-utils"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"e00678e8_a75118a7","line":21,"range":{"start_line":21,"start_character":32,"end_line":21,"end_character":59},"updated":"2022-02-07 21:16:56.000000000","message":"protect_running_kernel\n\n    boolean\n\n    Controls whether the package corresponding to the running version of kernel is protected from removal. Default is True.\n\nThis is does indeed look like the proper fix, compared to my previous change to use the rpm command.\n\nThanks Steve!","commit_id":"f3cb50bb4b83f6554c5ddc94bc22e3df61e079dd"}]}
