Bug#576227: insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot

2010-04-05 Thread Ola Lundqvist
Hi Kir

Thanks a lot for this information. I'll add a note about this to the 
README.Debian
file so people know about this limitation.

Best regards,

// Ola

On Mon, Apr 05, 2010 at 02:56:54PM +0400, Kir Kolyshkin wrote:
> On 04/03/2010 04:04 PM, Ola Lundqvist wrote:
>> Hi Christian
>>
>> On Sat, Apr 03, 2010 at 11:13:38AM +0200, Christian Hofstaedtler wrote:
>>
>>> Hi Ola,
>>>
>>> * Ola Lundqvist  [100402 00:49]:
>>>  
 I have never used insserv myself. Can you send me your
 S00vzreboot file? I need to determine why it considers it to be
 corrupt.

>>> Squeeze seems to install insserv by default, so this was not my choice ;-)
>>>
>>>  
  From the source in squeeze it looks like it generates the following file:
 #!/bin/bash

> /reboot
>  
>> Ok. Creates a /reboot file. It must have some function in openvz to reboot 
>> it.
>>
>>
>>> Lenny version generates this:
>>>
>>> # cat /etc/init.d/../rc6.d/S00vzreboot
>>> #!/bin/bash
>>> >//reboot
>>>  
>> Ok. Both has same function.
>>
>>
 And that is about it. It is understandable if insserv considers it to be
 corrupt. On the other hand, it is really just an empty file so maybe
 insserv should be changed here.

 It would be possible to generate more in that script so that insserv 
 determines
 that this is something empty and ignores it.

>>> This is probably the right thing to do, even if it exposes something which 
>>> looks
>>> like a hack even more.
>>>  
>> Yes. I'm checking with upstream now.
>>
>
> The problem is not with the text inside the file, the problem is that  
> the file
> itself is a real file, while insserv expects symlink.
>
> Nevertheless, the complaint from insserv is just a warning, and although
> it looks bad nothing bad is happening.
>
> We can redo the logic and create a real file in init.d and then a symlink
> in rc6.d but this will make things more complex, and the sole benefit
> would be that insserv stops complaining. Because of that, I'd rather
> let it stay as is.
>
> More to say, this reboot hack will be replaced by a event-driven daemon
> in future OpenVZ releases so it doesn't make much sense to fix something
> that is not broken and will be gone in the future.
>
> --kir
>

-- 
 --- Inguza Technology AB --- MSc in Information Technology 
/  o...@inguza.comAnnebergsslingan 37\
|  o...@debian.org   654 65 KARLSTAD|
|  http://inguza.com/Mobile: +46 (0)70-332 1551 |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9  /
 ---



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#576227: insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot

2010-04-05 Thread Kir Kolyshkin

On 04/03/2010 04:04 PM, Ola Lundqvist wrote:

Hi Christian

On Sat, Apr 03, 2010 at 11:13:38AM +0200, Christian Hofstaedtler wrote:
   

Hi Ola,

* Ola Lundqvist  [100402 00:49]:
 

I have never used insserv myself. Can you send me your
S00vzreboot file? I need to determine why it considers it to be
corrupt.
   

Squeeze seems to install insserv by default, so this was not my choice ;-)

 

 From the source in squeeze it looks like it generates the following file:
#!/bin/bash
   

/reboot
 

Ok. Creates a /reboot file. It must have some function in openvz to reboot it.

   

Lenny version generates this:

# cat /etc/init.d/../rc6.d/S00vzreboot
#!/bin/bash
>//reboot
 

Ok. Both has same function.

   

And that is about it. It is understandable if insserv considers it to be
corrupt. On the other hand, it is really just an empty file so maybe
insserv should be changed here.

It would be possible to generate more in that script so that insserv determines
that this is something empty and ignores it.
   

This is probably the right thing to do, even if it exposes something which looks
like a hack even more.
 

Yes. I'm checking with upstream now.
   


The problem is not with the text inside the file, the problem is that 
the file

itself is a real file, while insserv expects symlink.

Nevertheless, the complaint from insserv is just a warning, and although
it looks bad nothing bad is happening.

We can redo the logic and create a real file in init.d and then a symlink
in rc6.d but this will make things more complex, and the sole benefit
would be that insserv stops complaining. Because of that, I'd rather
let it stay as is.

More to say, this reboot hack will be replaced by a event-driven daemon
in future OpenVZ releases so it doesn't make much sense to fix something
that is not broken and will be gone in the future.

--kir



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#576227: insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot

2010-04-03 Thread Ola Lundqvist
Hi Christian

On Sat, Apr 03, 2010 at 11:13:38AM +0200, Christian Hofstaedtler wrote:
> Hi Ola,
> 
> * Ola Lundqvist  [100402 00:49]:
> > I have never used insserv myself. Can you send me your
> > S00vzreboot file? I need to determine why it considers it to be
> > corrupt.
> 
> Squeeze seems to install insserv by default, so this was not my choice ;-)
> 
> > From the source in squeeze it looks like it generates the following file:
> > #!/bin/bash
> > > /reboot

Ok. Creates a /reboot file. It must have some function in openvz to reboot it.

> Lenny version generates this:
> 
># cat /etc/init.d/../rc6.d/S00vzreboot
>#!/bin/bash
>>//reboot

Ok. Both has same function.

> > And that is about it. It is understandable if insserv considers it to be
> > corrupt. On the other hand, it is really just an empty file so maybe
> > insserv should be changed here.
> > 
> > It would be possible to generate more in that script so that insserv 
> > determines
> > that this is something empty and ignores it.
> 
> This is probably the right thing to do, even if it exposes something which 
> looks 
> like a hack even more.

Yes. I'm checking with upstream now.

// Ola

> Thanks,
> Christian
> 
> -- 
> christian hofstaedtler
> 
> 
> 

-- 
 - Ola Lundqvist ---
/  o...@debian.org Annebergsslingan 37  \
|  o...@inguza.com  654 65 KARLSTAD  |
|  http://inguza.com/  +46 (0)70-332 1551   |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#576227: insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot

2010-04-03 Thread Christian Hofstaedtler
Hi Ola,

* Ola Lundqvist  [100402 00:49]:
> I have never used insserv myself. Can you send me your
> S00vzreboot file? I need to determine why it considers it to be
> corrupt.

Squeeze seems to install insserv by default, so this was not my choice ;-)

> From the source in squeeze it looks like it generates the following file:
> #!/bin/bash
> > /reboot

Lenny version generates this:

   # cat /etc/init.d/../rc6.d/S00vzreboot
   #!/bin/bash
   >//reboot

> And that is about it. It is understandable if insserv considers it to be
> corrupt. On the other hand, it is really just an empty file so maybe
> insserv should be changed here.
> 
> It would be possible to generate more in that script so that insserv 
> determines
> that this is something empty and ignores it.

This is probably the right thing to do, even if it exposes something which 
looks 
like a hack even more.

Thanks,
Christian

-- 
christian hofstaedtler



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#576227: insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot

2010-04-01 Thread Ola Lundqvist
Hi Christian

I have never used insserv myself. Can you send me your
S00vzreboot file? I need to determine why it considers it to be
corrupt.

>From the source in squeeze it looks like it generates the following file:
#!/bin/bash
> /reboot

And that is about it. It is understandable if insserv considers it to be
corrupt. On the other hand, it is really just an empty file so maybe
insserv should be changed here.

It would be possible to generate more in that script so that insserv determines
that this is something empty and ignores it.

I'll forward this upstream.

Best regards,

// Ola

On Thu, Apr 01, 2010 at 09:04:24PM +0200, Christian Hofstaedtler wrote:
> Package: vzctl
> Version: 3.0.22-14
> Severity: normal
> 
> Hi Ola,
> 
> with a lenny host and a squeeze VE, insserv *inside* the VE complains
> that the automatically created vzreboot script is 'corrupt or invalid':
> 
> insserv: warning: script is corrupt or invalid: 
> /etc/init.d/../rc6.d/S00vzreboot
> 
> This happens during installation of unrelated packages using APT. (I 
> guess when other packages install new init-scripts using insserv.)
> 
> I don't know if this has already been fixed for vzctl in squeeze, but
> anyway it'd be nice if this could be fixed for vzctl in lenny.
> 
> Thanks,
>   Christian
> 
> 
> -- System Information:
> Debian Release: 5.0.4
>   APT prefers stable
>   APT policy: (990, 'stable')
> Architecture: i386 (i686)
> 
> Kernel: Linux 2.6.26-2-openvz-686 (SMP w/2 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: 
> LC_ALL set to en_US.UTF-8)
> Shell: /bin/sh linked to /bin/bash
> 
> Versions of packages vzctl depends on:
> ii  iproute 20080725-2   networking and traffic control 
> too
> ii  libc6   2.7-18lenny2 GNU C Library: Shared libraries
> ii  vzquota 3.0.11-1 server virtualization solution - 
> q
> 
> Versions of packages vzctl recommends:
> ii  rsync 3.0.3-2fast remote file copy program 
> (lik
> 
> Versions of packages vzctl suggests:
> pn  linux-patch-openvz (no description available)
> 
> -- no debconf information
> 
> 
> 
> 

-- 
 - Ola Lundqvist ---
/  o...@debian.org Annebergsslingan 37  \
|  o...@inguza.com  654 65 KARLSTAD  |
|  http://inguza.com/  +46 (0)70-332 1551   |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#576227: insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot

2010-04-01 Thread Christian Hofstaedtler
Package: vzctl
Version: 3.0.22-14
Severity: normal

Hi Ola,

with a lenny host and a squeeze VE, insserv *inside* the VE complains
that the automatically created vzreboot script is 'corrupt or invalid':

insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot

This happens during installation of unrelated packages using APT. (I 
guess when other packages install new init-scripts using insserv.)

I don't know if this has already been fixed for vzctl in squeeze, but
anyway it'd be nice if this could be fixed for vzctl in lenny.

Thanks,
  Christian


-- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (990, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-openvz-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages vzctl depends on:
ii  iproute 20080725-2   networking and traffic control too
ii  libc6   2.7-18lenny2 GNU C Library: Shared libraries
ii  vzquota 3.0.11-1 server virtualization solution - q

Versions of packages vzctl recommends:
ii  rsync 3.0.3-2fast remote file copy program (lik

Versions of packages vzctl suggests:
pn  linux-patch-openvz (no description available)

-- no debconf information




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org