Commit Graph

66 Commits

Author SHA1 Message Date
Renato Botelho
e09797b0c9 Deal correct with filenames with spaces 2014-11-14 07:46:57 -02:00
Renato Botelho
cc814aef37 Make it possible to remove a directory on obsoletedfiles 2014-11-14 07:46:57 -02:00
Renato Botelho
049c74ecbf Check if array is set 2014-11-06 11:40:25 -02:00
Renato Botelho
e7752fc4ee Remove extra ; and space 2014-11-06 07:57:21 -02:00
Renato Botelho
e7a0051400 Process obsolete files in shell script instead of php 2014-11-06 07:57:21 -02:00
Renato Botelho
48f77cef06 Simplify post_upgrade_command logic and obsolete /usr/local/sbin/cvs_sync.sh instead of removing it on post_upgrade_command 2014-11-06 07:57:21 -02:00
Renato Botelho
720c529f28 Fix #3749:
When a full upgrade from 2.1.x to 2.2 is being done, after decompress
tarball with 2.2 files, /bin/sh is not able to run a script using syntax
'sh scriptname'. Because of that, /tmp/post_upgrade_command and
/etc/rc.reboot are not executed ending on an incomplete and broken
update.

Since we need to fix it only touching 2.2 files, the only way I found to
workaround the situation is to use pre_upgrade_command script to:

- Copy /bin/sh to /tmp/sh.old
- Change /etc/rc.firmware to use sh.old when calling
post_upgrade_command and rc.reboot
- Kill current rc.firmware process
- Start a new rc.firmware using same parameters

This issue doesn't affect nanobsd or 2.2 -> 2.2 updates
2014-07-11 08:23:04 -03:00
Renato Botelho
d4b1e549c2 Back to cons25 for now since we found some issues with xterm on serial console 2014-07-02 17:24:25 -03:00
Renato Botelho
6f9a191d76 Change default console from cons25 to xterm, while I'm here, simplify the check 2014-07-01 13:37:05 -03:00
Ermal
e61f548f2c Get rid of embedded platform. Its time to GC this 2014-04-14 13:06:28 +00:00
Ermal
23cb5252d7 There is no need to make distinction in kernel anymore since they are the same nowdays and it does the right thing(tm) most of the time 2014-04-14 08:13:37 +00:00
jim-p
c468ffb5ce Add a file flag to trigger the forced serial or else we may miss it during a firmware update and still end up with an accidentally disabled port. 2014-02-28 11:37:14 -05:00
jim-p
407fbf455b Add a mechanism by which the serial port can be forced on always regardless of the config setting. (useful for nano+vga setups) 2014-02-14 09:58:17 -05:00
jim-p
a4dc96324c Make this name a little more general in case we decide to have multiple similar files. 2013-09-19 13:53:08 -04:00
jim-p
495dd80476 If upgrading NanoBSD, try to grab the previous timezone file so the zone is preserved on the next boot. 2013-08-28 10:48:17 -04:00
jim-p
fa92a6a49e Also run mtree check post-upgrade. 2013-08-28 10:44:24 -04:00
jim-p
8a0f6ca13d Be a little smarter about the default kernel in rare cases where we cannot determine what was in use. 2013-01-03 09:29:50 -05:00
jim-p
bff167fd35 Remove other potential places where someone could select a kernel we no longer ship. Try to improve kernel detection a little more. 2012-11-20 09:45:15 -05:00
jim-p
58d9e380a7 Don't skip over wrap_vga here. 2012-08-29 11:44:39 -04:00
jim-p
d62a2f6cb3 Fix case, it's not ARGV it's argv for php 2012-07-09 10:55:56 -04:00
jim-p
baef6be8cf Be more verbose during upgrade to see why nanobsd isn't carrying over the setting as expected. 2012-07-08 13:32:51 -04:00
jim-p
bcca590fa4 Fixup post-update processing on NanoBSD 2012-07-06 16:04:46 -04:00
Erik Fonnesbeck
c5d8b1f441 Use !empty instead of isset to prevent accidental deletion of the last used repository URL when firmware update gitsync settings have been saved without a repository URL. 2012-04-26 19:47:57 -06:00
Erik Fonnesbeck
d63b89af70 Fix filename used in check for existence of the uniprocessor kernel to match the one that was being used to extract. 2012-02-28 10:41:58 -07:00
jim-p
e684290f77 Fixup the kernel upgrade code a bit to be safer, and assume SMP in the default case, and also warn if there was a problem. Should fix #1427 2012-02-28 12:14:23 -05:00
smos
2ce660ad4d Unbreak a number of explode() replacements which required preg_split() 2012-01-20 12:18:13 +01:00
smos
cfbfd9412b The function split() is replaced by the function explode(). Starting with PHP 5.3 this is deprecated and with version 6 gone.
Replacing it surpresses all the warnings
2012-01-19 20:33:41 +01:00
Lauri Tirkkonen
a7401ce73a Clean up .profile and .shrc 2012-01-17 10:38:30 +02:00
jim-p
196d00856d Setup serial bits after upgrade on NanoBSD, too. 2011-10-31 16:25:21 -04:00
jim-p
a90896fd64 Move the code to touch needs_package_sync into the shell script portion of the post upgrade command. The PHP portion will fail spectacularly during the 1.2.3-to-2.0 upgrade trying to run the new binaries on the old OS. The shell script part still works. Fixes #1251 enough for what we need. The PHP code can never run properly there, but at least we can trigger the package reinstall and the rest can sort itself out when 2.0 boots the first time. 2011-05-24 12:22:43 -04:00
Scott Ullrich
a3755fe7df Exclude loader.conf from being update during kernel update 2011-01-28 17:09:17 -05:00
jim-p
7201ca277e We no longer use /var/run/config.lock - catch up to other progress. Also, use lockf to test if the config is locked now, with a 30 second timeout. 2011-01-12 14:26:35 -05:00
Scott Ullrich
fe868e1d9d Revert "Swoop through and stop any packages prior to upgrade. Ticket #1156"
This reverts commit cf42de70c8.
2011-01-05 16:28:31 -05:00
Scott Ullrich
cf42de70c8 Swoop through and stop any packages prior to upgrade. Ticket #1156 2011-01-05 16:22:11 -05:00
Erik Fonnesbeck
f0ce6758e8 Add option to System: Firmware: Settings for running gitsync after installing an update, hidden/disabled if git has not been installed yet. 2010-11-10 03:03:00 -07:00
Scott Ullrich
d32d3970d5 Add routed/ items to obsoleted files. Force removal of file so that directories can be included in the future 2010-11-06 18:20:35 -04:00
sullrich
854415fa39 Move files to pfSense.obsoletedfiles 2009-11-29 20:33:37 -05:00
Scott Ullrich
778b080b9f Overwrite .cshrc and .profile 2009-08-09 21:03:59 -04:00
Scott Ullrich
5e9cb18928 Escape command 2009-08-09 20:55:25 -04:00
Scott Ullrich
b001e0e52a Handle console too for noninteractive 2009-08-09 19:56:05 -04:00
Scott Ullrich
da5cc67599 Backout last commit, need to figure out the console angle as well 2009-08-09 19:56:05 -04:00
Scott Ullrich
08fe13026c Fix non-interactive script bug on upgrade. 2009-08-09 17:26:11 -04:00
Scott Ullrich
89f49b8fc5 Complete path to rm 2009-06-18 20:27:10 -04:00
Scott Ullrich
7aa216d6b5 Ensure we are mount rw 2008-11-09 00:30:06 +00:00
Scott Ullrich
3636a30092 Oops, use /boot/kernel/ 2008-11-09 00:18:28 +00:00
Scott Ullrich
28549cefa8 Oops, use /boot/kernel/ 2008-11-09 00:17:51 +00:00
Scott Ullrich
828a371f1d Move pfsense_kernel.txt to /tmp and remove /boot/kernel/* contents so we
are guarantee'd a fresh kernel directory (note freebsd kernel install moves
the old kernel directory to kernel.old so this is very similar.
2008-11-09 00:14:14 +00:00
Scott Ullrich
5d8c7db827 Remove obsoleted files after upgrade 2008-09-08 22:08:56 +00:00
Scott Ullrich
7770cea849 Only signal a package reinstall on full installations. 2008-07-22 16:18:47 +00:00
Scott Ullrich
7a4e37e10c Record prior version 2008-07-07 02:11:27 +00:00