mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 06:21:08 +00:00
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 <ncopa@alpinelinux.org> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
1ea59ad28a
commit
2899ab0b1a
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user