Re: [vserver] Upgrading quest from Debian squeeze to wheezy

From: Ben Green <ben_at_bristolwireless.net>
Date: Mon 07 Oct 2013 - 18:31:25 BST
Message-ID: <20131007183125.Horde.Ax_eHuTncrrOwlMGDk8JGQ1@slackmail.co.uk>

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
Received on Mon Oct 7 18:33:35 2013

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 07 Oct 2013 - 18:33:35 BST by hypermail 2.1.8