We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8af51c9 commit 845c4c1Copy full SHA for 845c4c1
docker/centos-7.ks
@@ -61,6 +61,14 @@ yum-plugin-ovl
61
62
%end
63
64
+%pre
65
+# Pre configure tasks for Docker
66
+
67
+# Don't add the anaconda build logs to the image
68
+# see /usr/share/anaconda/post-scripts/99-copy-logs.ks
69
+touch /tmp/NOSAVE_LOGS
70
+%end
71
72
%post --log=/anaconda-post.log
73
# Post configure tasks for Docker
74
@@ -103,8 +111,6 @@ echo 'container' > /etc/yum/vars/infra
103
111
## Remove some things we don't need
104
112
rm -rf /var/cache/yum/x86_64
105
113
rm -f /tmp/ks-script*
106
-rm -rf /var/log/anaconda
107
-rm -rf /tmp/ks-script*
108
114
rm -rf /etc/sysconfig/network-scripts/ifcfg-*
109
115
# do we really need a hardware database in a container?
110
116
rm -rf /etc/udev/hwdb.bin
0 commit comments