VirtualBox

Opened 16 years ago

Closed 16 years ago

#4212 closed defect (fixed)

rpm upgrade removes files

Reported by: Alex Barker Owned by:
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 (1)

comment:1 by Frank Mehnert, 16 years ago

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette