Resolves: RHEL-49671
Related: RHEL-49671 This reverts commit 01a7163c23 because it broke "dnf --installroot=... install" on locked OSTree.
01a7163c23