Commit Graph

10 Commits

Author SHA1 Message Date
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
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
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
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
7a4e37e10c Record prior version 2008-07-07 02:11:27 +00:00
Scott Ullrich
75c7ac379c Adding pre upgrade hook 2008-07-07 01:52:14 +00:00