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:
@@ -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"]
|
||||
|
7
scripts/dockerimages/scripts/entry.sh
Executable file
7
scripts/dockerimages/scripts/entry.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -e /host/dev ]; then
|
||||
mount --bind /host/dev /dev
|
||||
fi
|
||||
|
||||
exec "$@"
|
@@ -1,7 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
mount --bind /host/dev /dev
|
||||
|
||||
if [ "$DAEMON" = true ]; then
|
||||
exec udevd
|
||||
fi
|
||||
|
Reference in New Issue
Block a user