]> git.proxmox.com Git - mirror_lxc.git/commitdiff
lxc-alpine: run bootmisc and syslog at boot runlevel
authorNatanael Copa <ncopa@alpinelinux.org>
Thu, 24 Oct 2013 11:30:14 +0000 (13:30 +0200)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 25 Oct 2013 14:52:23 +0000 (09:52 -0500)
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 <ncopa@alpinelinux.org>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
templates/lxc-alpine.in

index 8600a34ce35bc659d4b0dd05e092da9e0dc92214..2756b892376ab4e5f61c116f31186c69232c7828 100644 (file)
@@ -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
 }