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

From: Jean Weisbuch <jean_at_phpnet.org>
Date: Mon 07 Oct 2013 - 18:56:17 BST
Message-ID: <7dcd3918-5ee2-47c9-b154-751100edf90f@email.android.com>

Using update-rc.d XX remove will just remove the symlinks on /etc/rc*.d so it shouldnt be a problematic in any way.
At worse, you could still recreate the links from the host system.

Ben Green <ben@bristolwireless.net> wrote:
>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:56:34 2013

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