Commit 2899ab0b by Natanael Copa Committed by Serge Hallyn

lxc-alpine: run bootmisc and syslog at boot runlevel

The bootmisc script is needed to clean up various temp dirs like /tmp and migrate /var/run to /run if needed. The syslog service is started in 'boot' runlevel when running on real hardware so we do the same for containers. Signed-off-by: 's avatarNatanael Copa <ncopa@alpinelinux.org> Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent 1ea59ad2
...@@ -140,7 +140,8 @@ EOF ...@@ -140,7 +140,8 @@ EOF
mknod -m 666 "$rootfs/dev/ptmx" c 5 2 mknod -m 666 "$rootfs/dev/ptmx" c 5 2
# start services # start services
ln -s /etc/init.d/syslog "$rootfs"/etc/runlevels/default/syslog ln -s /etc/init.d/bootmisc "$rootfs"/etc/runlevels/boot/bootmisc
ln -s /etc/init.d/syslog "$rootfs"/etc/runlevels/boot/syslog
return 0 return 0
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment