Bug 164053 - upgrade from FC2 to FC4 leaves dangling rawdevices symlinks
Summary: upgrade from FC2 to FC4 leaves dangling rawdevices symlinks
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 4
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Paul Nasrat
QA Contact: Mike McLean
URL:
Whiteboard:
: 164054 164055 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-07-23 13:24 UTC by Need Real Name
Modified: 2007-11-30 22:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-10-05 22:26:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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*.


Note You need to log in before you can comment on or make changes to this bug.