From: Natanael Copa Date: Thu, 24 Oct 2013 11:30:14 +0000 (+0200) Subject: lxc-alpine: run bootmisc and syslog at boot runlevel X-Git-Tag: lxc-1.0.0.alpha3~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2899ab0b1a607e7824214590ebe93f76fa7f7c20;p=thirdparty%2Flxc.git 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: Natanael Copa Signed-off-by: Serge Hallyn --- diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in index 8600a34ce..2756b8923 100644 --- a/templates/lxc-alpine.in +++ b/templates/lxc-alpine.in @@ -140,7 +140,8 @@ EOF mknod -m 666 "$rootfs/dev/ptmx" c 5 2 # 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 }