OpenVZ generates /etc/init.d/vzquota on every reboot of a container. Since
Debian6/Squeeze makes use of insserv, it's required that all startup scripts include LSB tags.
If you don't this results in the following errors when trying to install software (via apt-get):
insserv: warning: script 'S10vzquota' missing LSB tags and overrides
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
insserv: warning: script 'vzquota' missing LSB tags and overrides
insserv: There is a loop between service vzquota and single if started
insserv: loop involving service single at depth 11
insserv: loop involving service vzquota at depth 10
insserv: loop involving service mountnfs at depth 8
insserv: There is a loop between service vzquota and single if started
insserv: loop involving service sysklogd at depth 14
insserv: Starting vzquota depends on single and therefore on system facility `$all' which can not be true!
To resolve the issue the following fix is to be applied:
- Code: Select all
vi /etc/init.d/vzquota
and insert the following code fragment just after "#!/bin/sh":
- Code: Select all
### BEGIN INIT INFO
# Provides: vzquota
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start vzquota at the end of boot
# Description: This command is used to configure and see disk quota statistics for Containers.
### END INIT INFO
Similar fix also applies to S00vzreboot init script.