On Sun, 8 Aug 2010 18:26:33 +0100
Paul Howarth <paul(a)city-fan.org> wrote:
Good:
I no longer need my selinux workaround:
config_opts['files']['selinux/enforce'] = "0"
Bad:
New option max_fs_size for tmpfs plugin doesn't seem to have a default
value; at least I get a traceback if I use my old config, which had
just:
config_opts['plugin_conf']['tmpfs_enable'] = True
config_opts['plugin_conf']['tmpfs_opts']['required_ram_mb'] =
2048
Root cache is huge because of cache files getting copied to the cache.
The following change restored sanity:
--- /usr/lib/python2.6/site-packages/mock/plugins/root_cache.py.orig
2010-08-03 22:04:48.000000000 +0100
+++ /usr/lib/python2.6/site-packages/mock/plugins/root_cache.py
2010-08-08 18:10:42.175478756 +0100 @@ -118,6 +118,8 @@
"--exclude=./proc", "--exclude=./sys",
"--exclude=./dev",
+
"--exclude=./tmp",
+
"--exclude=./var/cache/yum", "."],
shell=False
)
Better version of this fix, retains the directories but not their
contents, which is important, particularly for /tmp:
--- /usr/lib/python2.6/site-packages/mock/plugins/root_cache.py.orig 2010-08-03
22:04:48.000000000 +0100
+++ /usr/lib/python2.6/site-packages/mock/plugins/root_cache.py 2010-08-10
09:56:14.854332207 +0100
@@ -118,6 +118,8 @@
"--exclude=./proc",
"--exclude=./sys",
"--exclude=./dev",
+ "--exclude=./tmp/*",
+
"--exclude=./var/cache/yum/*",
"."],
shell=False
)
Another issue I've just come across: I can no longer build for i586 target arch.
Fix:
--- /usr/sbin/mock.orig 2010-08-03 22:04:48.000000000 +0100
+++ /usr/sbin/mock 2010-08-10 11:26:00.018451269 +0100
@@ -369,9 +369,9 @@
config_opts['online'] = options.online
legal_arches = {
- 'i386' : ('i386', 'i686'),
- 'i686' : ('i386', 'i686'),
- 'x86_64' : ('i386', 'i686', 'x86_64'),
+ 'i386' : ('i386', 'i586', 'i686'),
+ 'i686' : ('i386', 'i586', 'i686'),
+ 'x86_64' : ('i386', 'i586', 'i686',
'x86_64'),
'ppc' : ('ppc'),
'ppc64' : ('ppc', 'ppc64'),
'sparc' : ('sparc'),
Paul.