Michael E Brown <Michael_E_Brown(a)dell.com> writes:
> This patch bind-mounts a custom /etc/rpm directory to set the
> %_netsharedpath macro before doing the 'yum install' operation.
>
> Else, installation of filesystem package will fail due to a cpio error.
This one is required IFF previous /dev patch is applied, correct?
yes; I thought that the References: header should make this clear.
Can this be done in .rpmmacros instead?
no; there is to differ between two situations:
1. 'yum install'
This is executed as root and reads host's /etc/rpm/macros file (and
/etc/rpm/platform). Afais, this case is completely ignored in current
mock
~/.rpmmacros and other rpm configuration in the chroot will be
completely ignored.
2. 'rpmbuild'
This is executed as the mock-user in the chroot and reads ~/.rpmmacros
> + self._mount('none --bind',
os.path.join(self.statedir, 'rpm'), '/etc/rpm')
Enrico