Subject: Re: [vserver] Upgrading quest from Debian squeeze to wheezy
From: Ben Green <ben@bristolwireless.net>
Date: Mon, 07 Oct 2013 18:31:25 +0100

Quoting Jean Weisbuch <jean@phpnet.org>:

> It works but it might stop in the middle of the apt-get upgrade on  
> the sysv-rc package if you removed by hand some init scripts on the  
> guest, you will need to do an apt-get -f install then an apt-get  
> dist-upgrade again afterwise and it will be OK.
>
> Don't forget to re-remove the un-needed init scripts from /etc/rc.*/.
> Here is the code i use for that matter (i have mksh, Perl and GNU  
> Parallel on all my guests installs but it should work the same with  
> ksh93 or bash and xargs instead of parallel) :
>         vserver ${VSERVERNAME} exec /bin/mksh -c "ls -U  
> /etc/init.d/*@(check|udev|hostname|mtab|mount|fs|reboot|random|hwclock)*  
> |perl -pe 's#^.*init.d/(.*)\$#\1#' |parallel 'update-rc.d -f {}  
> remove'"

I wouldn't suggest removing any init scripts at all. Disable the  
scripts selectively with insserv -r <scriptname>.

Cheers,
Ben