Bug#294404: (no subject)

2005-03-29 Thread A. Maitland Bottoms
On Date: Tue, 29 Mar 2005 03:57:27 -0800 Steve Langasek [EMAIL PROTECTED] 
posted:
mdadm-294404.diff

Almost there, I think. However, it didn't fix my broken md+udev+2.6.8-2-686-smp
system. After installing mdadm_1.9.0-2.1_i386.deb built using the patch, the
system startup link still had

S25mdadm-raid - ../init.d/mdadm-raid

Doing by hand:
update-rc.d -f mdadm-raid start 4 S . start 50 0 6 .
 System startup links for /etc/init.d/mdadm-raid already exist.

So somehow the package should do a

update-rc.d -f mdadm-raid remove

before the 

update-rc.d mdadm-raid start 4 S . start 50 0 6 .

on upgrade to take care of this situation.

-Maitland


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#294404: (no subject)

2005-03-29 Thread Steve Langasek
On Tue, Mar 29, 2005 at 02:58:17PM -0500, A. Maitland Bottoms wrote:
 On Date: Tue, 29 Mar 2005 03:57:27 -0800 Steve Langasek [EMAIL PROTECTED] 
 posted:
 mdadm-294404.diff

 Almost there, I think. However, it didn't fix my broken 
 md+udev+2.6.8-2-686-smp
 system. After installing mdadm_1.9.0-2.1_i386.deb built using the patch, the
 system startup link still had

 S25mdadm-raid - ../init.d/mdadm-raid

 Doing by hand:
 update-rc.d -f mdadm-raid start 4 S . start 50 0 6 .
  System startup links for /etc/init.d/mdadm-raid already exist.

 So somehow the package should do a

 update-rc.d -f mdadm-raid remove

 before the 

 update-rc.d mdadm-raid start 4 S . start 50 0 6 .

 on upgrade to take care of this situation.

Yes, this should only be done on upgrade; something like the following in
the postinst should suffice:

if [ -n $2 ]  dpkg --compare-versions $2 le 1.9.0-2;
then
update-rc.d -f mdadm remove
fi

Cheers,
-- 
Steve Langasek
postmodern programmer


signature.asc
Description: Digital signature