Bug 164053

Summary: upgrade from FC2 to FC4 leaves dangling rawdevices symlinks
Product: [Fedora] Fedora Reporter: Need Real Name <howarth>
Component: rpmAssignee: Paul Nasrat <nobody+pnasrat>
Status: CLOSED NOTABUG QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: katzj, nobody+pnasrat, notting
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-10-05 22:26:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2005-07-23 13:24:30 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/412.6 (KHTML, like Gecko) Safari/412.2

Description of problem:


Version-Release number of selected component (if applicable):
initscripts-8.11.1-1

How reproducible:
Always

Steps to Reproduce:
1. Upgrade install Fedora Core 4 onto a machine which has Fedora Core 2 installed.
2. check the /etc/rc*.d directories for dangling symlinks.

Actual Results:  lrwxrwxrwx  1 root root 20 Sep 26  2004 rc0.d/K44rawdevices -> ../init.d/rawdevices
lrwxrwxrwx  1 root root 20 Sep 26  2004 rc1.d/K44rawdevices -> ../init.d/rawdevices
lrwxrwxrwx  1 root root 20 Sep 26  2004 rc2.d/K44rawdevices -> ../init.d/rawdevices
lrwxrwxrwx  1 root root 20 Sep 26  2004 rc3.d/S56rawdevices -> ../init.d/rawdevices
lrwxrwxrwx  1 root root 20 Sep 26  2004 rc4.d/S56rawdevices -> ../init.d/rawdevices
lrwxrwxrwx  1 root root 20 Sep 26  2004 rc5.d/S56rawdevices -> ../init.d/rawdevices
lrwxrwxrwx  1 root root 20 Sep 26  2004 rc6.d/K44rawdevices -> ../init.d/rawdevices

all point to /etc/init.d/rawdevices which no longer exists.

Expected Results:  The upgrade of the initscripts rpm during the FC2->FC4 upgrade install should have removed
all symlinks in /etc/rc*.d to *rawdevices.

Additional info:

Comment 1 Bill Nottingham 2005-07-25 02:11:51 UTC
*** Bug 164054 has been marked as a duplicate of this bug. ***

Comment 2 Bill Nottingham 2005-07-25 02:12:01 UTC
*** Bug 164055 has been marked as a duplicate of this bug. ***

Comment 3 Bill Nottingham 2005-07-25 02:13:34 UTC
Odd. There's a trigger to take care of this:

%triggerun -- initscripts < 7.62
/sbin/chkconfig --del rawdevices
exit 0

Not sure why it's not being run, or not working.

Comment 4 Need Real Name 2005-07-25 12:57:01 UTC
The trigger is being run since the /etc/init.d/rawdevices script has been deleted 
after the FC2->FC4 upgrade. The question is really why the trigger doesn't
delete the associated symlinks at the same time.
               

Comment 5 Bill Nottingham 2005-07-25 14:02:53 UTC
The trigger doesn't remove the /etc/init.d/rawdevices script - that's done just
by removing the old package. The trigger is just supposed to remove the symlinks.

Comment 6 Need Real Name 2005-07-25 15:02:17 UTC
I should be upgrading another FC2 system to FC4 soon. Is there anything I can
do to try to collect information on the triggerun that should happen when I do
the next upgrade?

Comment 7 Bill Nottingham 2005-07-25 15:06:22 UTC
Paul, Jeremy - is there a sane way to debug what triggers are firing when during
an anaconda upgrade?

Comment 8 Bill Nottingham 2005-09-30 20:25:27 UTC
I've reproduced this.

initscripts.spec has:

%triggerun -- initscripts <= 7.59
/sbin/chkconfig --del random
exit 0

%triggerun -- initscripts < 7.62
/sbin/chkconfig --del rawdevices
exit 0

On upgrade from 7.53, or similar, only the first trigger is being run.

I'll assign this to RPM, and collapse the triggers as of initscripts-8.17-1.



Comment 9 Jeff Johnson 2005-10-05 22:26:59 UTC
rpm has only ever promised to run the 1st trigger *by design*.