Have had an ongoing issue with a handful of lxc containers that fail to dnf upgrade the ‘filesystem’ package. Reading online it looks to also occur on docker containers.
Issue is caused by the /proc subsystem that is passed through from proxmox / the base OS.
filesystem package upgrade tries to chrown root:root a folder within /proc.
Append the following line:
#!/bin/bash echo "%_netsharedpath /sys:/proc" >> /etc/rpm/macros.dist
And rerun your upgrade.
All the fix does is tell dnf/yum/rpm that the proc subsystem is not locally managed and cannot be modified.