Project

General

Profile

Bug #267

Old package .inc files can prevent system from booting properly

Added by Chris Buechler over 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Package System
Target version:
Start date:
12/31/2009
Due date:
% Done:

0%

Estimated time:
Affected Version:
2.0
Affected Architecture:

Description

Old package .inc files on a 2.0 system can prevent the system from booting. For one example:

Configuring WAN interface...done.
Configuring LAN interface...bge0: link state changed to DOWN
done.
Configuring OPT1h interface...me1: link state changed to DOWN
done.
Starting syslog...done.
Configuring firewall..
Fatal error: Cannot redeclare is_url() (previously declared in /etc/inc/util.inc:1131) in /usr/local/pkg/squidguard_configurator.inc on line 1753

Probably should clean those all up before they're loaded, and force a package reinstall.

Associated revisions

Revision c57a3ac8 (diff)
Added by Jim Pingle about 9 years ago

Don't load the package include files if the packages are out of sync, which can lead to the system not booting properly. Should help with ticket #267.

History

#1 Updated by Ermal Lu├ži over 9 years ago

The only solution i can find for this is getting a list of packages installed before upgrade.
Save it somewhere and remove everything before upgrade.
When booting up installing from sctrach this packages!

#2 Updated by Chris Buechler over 9 years ago

similar issue with open-vm-tools, if you upgrade to a diff FreeBSD version than your open-vm-tools is for, it will panic on next boot. One example:
http://forum.pfsense.org/index.php/topic,23044.0.html

#3 Updated by Jim Pingle about 9 years ago

  • Status changed from New to Feedback

This should be fixed with the commit I just made. Post upgrade we should have /conf/needs_package_sync and we can just skip loading the .inc files in that case since they may be out of sync.

May not help with vmware but it should help with the other cases.

#4 Updated by Jim Pingle about 9 years ago

Alternately, sometime before here in the boot process it could force a reinstall of packages if it sees /conf/needs_package_sync instead of requiring a visit to the GUI.

#5 Updated by Chris Buechler almost 9 years ago

  • Status changed from Feedback to Resolved

this seems to be fine now

Also available in: Atom PDF