salt-minion/Dockerfile.template: Add 'need logger' to salt-minion init script
authorW. Trevor King <wking@tremily.us>
Wed, 26 Feb 2014 19:30:39 +0000 (11:30 -0800)
committerW. Trevor King <wking@tremily.us>
Wed, 26 Feb 2014 23:08:47 +0000 (15:08 -0800)
Work around Gentoo's #502550 [1].

[1]: https://bugs.gentoo.org/show_bug.cgi?id=502550

salt-minion/Dockerfile.template

index f6acc1ef08a17b32c26672a6e455ef3073c95306..7f32d3d0c3776e5fc74765cad0213db4d7de3b75 100644 (file)
@@ -55,6 +55,7 @@ RUN emerge -v app-admin/salt dev-python/git-python
 RUN eselect news read new
 RUN rc-update add salt-minion default
 
+RUN sed -i 's|^\([[:space:]]*\)\(need net\)$|\1\2\n\1need logger|' /etc/init.d/salt-minion
 RUN sed -i 's|^#\(log_file: file:///dev/log\)|\1|' /etc/salt/minion
 RUN sed -i 's|^\(#log_level_logfile:.*\)$|\1\nlog_level_logfile: info|' /etc/salt/minion