dab 1.1.9 on ProxMox 1.7 fails building squeeze template for vtigercrm

apmuthu

Member
Feb 26, 2009
744
3
18
Chennai - India & Singapore
Since dab v1.1.9 on ProxMox v1.7 was failing to build vtigercrm on lenny I tried it on squeeze and it failed as the mysql_randompw script was failing and a rc2.d file for reboot was corrupt.

The appliance build logfile is attached - View attachment logfile6.zip

/var/lib/dpkg/status in the built template's container (90000) shows:
Code:
Package: module-init-tools
Status: purge ok not-installed
Several warnings in the logfile like the following are present:
Code:
Setting up initscripts (2.88dsf-13) ...
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
.
.
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
Setting up util-linux (2.17.2-3.3) ...
update-alternatives: using /bin/more to provide /usr/bin/pager (pager) in auto mode.
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
Setting up sysvinit (2.88dsf-13) ...
.
.
Setting up procps (1:3.2.8-9) ...
update-alternatives: using /usr/bin/w.procps to provide /usr/bin/w (w) in auto mode.
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
invoke-rc.d: policy-rc.d denied execution of start.
Setting up ssl-cert (1.0.26) ...
Setting up libk5crypto3 (1.8.3+dfsg-3) ...
Setting up whiptail (0.52.11-1) ...
Setting up ifupdown (0.6.10) ...
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
Setting up libreadline6 (6.1-3) ...
Setting up logrotate (3.7.8-6) ...
Setting up postfix (2.7.1-1) ...
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
Adding group `postfix' (GID 104) ...
Done.
.
.
Setting up openssh-server (1:5.5p1-5+b1) ...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
invoke-rc.d: policy-rc.d denied execution of restart.
.
.
Setting up tasksel (2.85) ...
update-rc.d: using dependency based boot sequencing
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
unpack: libx11-data
Further:
Code:
Setting up mysql-server-5.1 (5.1.49-3) ...
invoke-rc.d: policy-rc.d denied execution of stop.
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
invoke-rc.d: policy-rc.d denied execution of start.
101215 15:30:54 [Note] Plugin 'FEDERATED' is disabled.
101215 15:30:54  InnoDB: Started; log sequence number 0 44233
101215 15:30:54  InnoDB: Starting shutdown...
101215 15:30:59  InnoDB: Shutdown completed; log sequence number 0 44233
101215 15:30:59 [Note] Plugin 'FEDERATED' is disabled.
101215 15:30:59  InnoDB: Started; log sequence number 0 44233
101215 15:30:59  InnoDB: Starting shutdown...
101215 15:31:05  InnoDB: Shutdown completed; log sequence number 0 44233
update-rc.d: using dependency based boot sequencing
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
dab: install apache2-mpm-prefork apache2
 
Last edited:

apmuthu

Member
Feb 26, 2009
744
3
18
Chennai - India & Singapore
Lines 17-19 in /usr/lib/dab/scripts/mysql_randompw :
Code:
if [ "X${HOSTNAME}" == "Xlocalhost" ] ; then
    exit 0;
fi
should be replaced with
Code:
if [ "X${HOSTNAME}" = "Xlocalhost" ] ; then
    exit 0;
fi
for squeeze template builds atleast. Otherwise the "==" operator gets an error.

It has already been implemented in /usr/lib/dab/scripts/ssh_gen_host_keys.Also the spaces before the exit 0; statement may be replaced with a tab (in both files).
 
Last edited:

apmuthu

Member
Feb 26, 2009
744
3
18
Chennai - India & Singapore
In the squeeze template for vtigercrm when the
Code:
dab task mysql --password random
is invoked, although line 1585 of DAB.pm tries to put it in runlevel 2 and priority 20, we see that it is always placed in runlevel 2 priority 01.
Tried
Code:
dab task mysql --password=random
as well to no avail.
 

dietmar

Proxmox Staff Member
Staff member
Apr 28, 2005
16,505
320
83
Austria
www.proxmox.com
Should we change from insserv to file-rc and have all startup sequence in one single file?
If so, how do we accomplish this in DAB?
Take a look at the Makefile in the standard squeeze template:
Code:
all: info/init_ok
        dab bootstrap
        dab install file-rc
        dab finalize
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE and Proxmox Mail Gateway. We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!