VirtualBox

Ticket #4212 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

rpm upgrade removes files

Reported by: kwhat Owned by:
Priority: minor Component: installer
Version: VirtualBox 2.2.4 Keywords: rpm delete init.d
Cc: Guest type: other
Host type: other

Description

When upgrading vbox to the latest version I found out the hard way that the rpm removes files that do not belong to it.

Basically I created a init.d script called virtualbox to start virtual servers on boot as virtualbox does not ship with anything to accomplish this task. After upgrading from 2.2.2 to 2.2.4 and bringing the virtual servers back up I noticed that the script I created was gone. Upon further inspection I found the following code block:

if [ -f /etc/init.d/virtualbox ]; then

echo "Found old version of /etc/init.d/virtualbox, removing." rm /etc/init.d/virtualbox [ -f /sbin/rcvirtualbox ] && rm -f /sbin/rcvirtualbox

fi

I am not sure what the rational for this was but shouldn't old versions of the rpm be responsible for cleaning up after them selves? Is this an RPM short fall? Can you AT LEAST backup files your planning on removing that don't belong to your package?

Change History

comment:1 Changed 5 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Removed in SVN. Actually this was a fix for old broken packages.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use