[PATCH mock] Allow installation when /dev is mounted read-only
Enrico Scholz
enrico.scholz at informatik.tu-chemnitz.de
Mon May 7 18:51:12 UTC 2007
Michael E Brown <Michael_E_Brown at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 480 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/buildsys/attachments/20070507/669d18a1/attachment.bin
More information about the buildsys
mailing list