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.
Thanks! This works, but the macros.dist file will be overwritten by the release package, so better put the macro in a separate file in /etc/rpm/, e.g. /etc/rpm/macros.sysprocfs. Any macros.* file will be picked up by rpm, as shown by rpm –showrc | grep ‘Macro path’ .