1
0
mirror of https://github.com/rancher/os.git synced 2025-09-16 06:59:12 +00:00

Add syslog and udev hotplugging

This commit is contained in:
Darren Shepherd
2015-04-06 06:52:17 -07:00
parent 02606da59f
commit 7bb5e10b12
5 changed files with 23 additions and 10 deletions

View File

@@ -29,3 +29,6 @@ RUN rm /sbin/poweroff /sbin/reboot /sbin/halt && \
sed -i 's/\(^sudo.*\)/\1rancher/g' /etc/group && \
echo '%sudo ALL=(ALL) ALL' >> /etc/sudoers
COPY scripts/dockerimages/scripts/inputrc /etc/inputrc
COPY scripts/dockerimages/scripts/entry.sh /usr/sbin/entry.sh
ENTRYPOINT ["/usr/sbin/entry.sh"]

View File

@@ -0,0 +1,7 @@
#!/bin/bash
if [ -e /host/dev ]; then
mount --bind /host/dev /dev
fi
exec "$@"

View File

@@ -1,7 +1,5 @@
#!/bin/bash
mount --bind /host/dev /dev
if [ "$DAEMON" = true ]; then
exec udevd
fi