Using DAB, built a debian 7.1 template on PVE 1.9
dab.conf:
Makefile:
When running an OpenVZ container based on this template, the init boot log shows:
The container runs normally.
In the Makefile, if the sed statement is not there then respawning error occurs.
The errors in the logs do not appear when running a container built using a similar DAB template for debian v6.0.7 with and without the sed statement in the Makefile.
dab.conf:
Code:
Suite: wheezy
CacheDir: ../cache
#Source: http://ftp.debian.org/debian SUITE main contrib
#Source: http://ftp.debian.org/debian SUITE-updates main contrib
#Source: http://security.debian.org SUITE/updates main contrib
Architecture: i386
Name: debian-7.0-standard
Version: 7.1-1
Section: system
Maintainer: Proxmox Support Team <support@proxmox.com>
Infopage: http://pve.proxmox.com/wiki/Debian_7.0_Standard
Description: Debian 7.0 (standard)
A small Debian Wheezy system including all standard packages.
Code:
BASEDIR:=$(shell dab basedir)
all: info/init_ok
dab bootstrap
sed -e 's/^\s*1:2345:respawn/# 1:2345:respawn/' -i ${BASEDIR}/etc/inittab
dab finalize
info/init_ok: dab.conf
dab init
touch $@
.PHONY: clean
clean:
dab clean
rm -f *~
.PHONY: dist-clean
dist-clean:
dab dist-clean
rm -f *~
Code:
INIT LOG Online
starting init logger
INIT: version 2.88 booting
stty: standard input: Invalid argument
Using makefile-style concurrent boot in runlevel S.
tcgetattr: Invalid argument
[[36minfo[39;49m] Not setting System Clock.
Activating swap...done.
[....] Cleaning up temporary files... /tmp[?25l[?1c7[[32m ok [39;49m8[?25h[?0c.
[....] Filesystem type 'simfs' is not supported. Skipping mount. ...[?25l[?1c7[warn[39;49m8[?25h[?0c [33m(warning).
Fast boot enabled, so skipping file system check. ... (warning).
[....] Mounting local filesystems...[?25l[?1c7[[32m ok [39;49m8[?25h[?0cdone.
/etc/init.d/mountall.sh: 59: kill: Illegal number: 42 1
[....] Activating swapfile swap...[?25l[?1c7[[32m ok [39;49m8[?25h[?0cdone.
[....] Cleaning up temporary files...[?25l[?1c7[[32m ok [39;49m8[?25h[?0c.
[....] Setting kernel variables ...[?25l[?1c7[[32m ok [39;49m8[?25h[?0cdone.
[....] Configuring network interfaces...[?25l[?1c7[[32m ok [39;49m8[?25h[?0cdone.
[....] Starting rpcbind daemon...[?25l[?1c7[[32m ok [39;49m8[?25h[?0c.
[....] Cleaning up temporary files...[?25l[?1c7[[32m ok [39;49m8[?25h[?0c.
[....] Setting up X socket directories... /tmp/.X11-unix /tmp/.ICE-unix[?25l[?1c7[[32m ok [39;49m8[?25h[?0c.
INIT: Entering runlevel: 2
stty: standard input: Invalid argument
Using makefile-style concurrent boot in runlevel 2.
tcgetattr: Invalid argument
[....] Starting rpcbind daemon...[....] Already running.[?25l[?1c7[[32m ok [39;49m8[?25h[?0c.
[....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[[32m ok [39;49m8[?25h[?0c.
[....] Starting deferred execution scheduler: atd[?25l[?1c7[[32m ok [39;49m8[?25h[?0c.
[....] Starting periodic command scheduler: cron[?25l[?1c7[[32m ok [39;49m8[?25h[?0c.
[....] Starting Postfix Mail Transport Agent: postfix[?25l[?1c7[[32m ok [39;49m8[?25h[?0c.
generating ssh host keys
[....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[[32m ok [39;49m8[?25h[?0c.
INIT: no more processes left in this runlevel
In the Makefile, if the sed statement is not there then respawning error occurs.
The errors in the logs do not appear when running a container built using a similar DAB template for debian v6.0.7 with and without the sed statement in the Makefile.