Project

General

Profile

Download (14 KB) Statistics
| Branch: | Tag: | Revision:

# Date Author Comment
b6b87fef 07/03/2009 09:52 PM Scott Ullrich

Output bsdlabel -A diagnostics as well

ad526b14 07/03/2009 09:49 PM Scott Ullrich

Output all slice information prior to upgrade, after dd operations and the final.

6b3e4734 07/03/2009 09:32 PM Scott Ullrich

Output logs to /conf/

6decd751 07/03/2009 09:27 PM Scott Ullrich

revert

d5c182eb 07/03/2009 08:56 PM Scott Ullrich

Use COMPLETE_PATH

d4b8f9a8 07/01/2009 01:24 AM Scott Ullrich

Sleep for 10 seconds before rebooting and allow disks to catch up

a368a026 06/30/2009 05:15 PM Ermal Luçi
  • Reorganize the 'apply' button infrustructure in the GUI.
    - Present three new functions is/mark/clear_subsystem_dirty('name_of_subsystem'). This makes easier to create such things without needing to introduce new globals.
    - Convert all pages to the new infrustructure...
3e0621ca 06/30/2009 04:19 AM Scott Ullrich

Mount RW when script launches

1a4075a9 06/30/2009 03:49 AM Scott Ullrich

Send log file to /conf/

d226535c 06/30/2009 01:28 AM Scott Ullrich

Add bit when restoring for diagnostics

e3ddf385 06/29/2009 08:58 PM Scott Ullrich

Alert when we are doing a NanoBSD style upgrade.

50ba07ea 06/29/2009 08:47 PM Scott Ullrich

Mount RW so we can write to logs. Duh. Mount RO if we exit out of an upgrade.

bc43f0ee 06/29/2009 08:45 PM Scott Ullrich

Mount RW so we can write to logs. Duh. Mount RO if we exit out of an upgrade.

507960cb 06/29/2009 12:33 AM Scott Ullrich

Copy host /etc/fstab to newly created area

45c710da 06/28/2009 11:23 PM Scott Ullrich

If anything goes wrong when updating fstab then abort the upgrade and file a notice.

8eaa9957 06/28/2009 10:33 PM Scott Ullrich

Use GLABEL_SLICE

62520171 06/28/2009 09:15 PM Scott Ullrich

Add a function named file_notice which invokes the php version.

9581e85b 06/28/2009 09:09 PM Scott Ullrich

Just for kicks I tried to use a full upgrade file instead of a file labaled upgrade. Bad things hapeppened. Prevent this in the future and error out and file a notice when this is attempted and give a hint that a file namebed "upgrade" must be used.

024445ee 06/28/2009 09:03 PM Scott Ullrich

Use gzcat

65c79f55 06/28/2009 01:33 AM Scott Ullrich

s/config/conf/

0fa9ebb1 06/27/2009 08:51 PM Scott Ullrich

Oops use /config/

359d9ec9 06/27/2009 08:31 PM Scott Ullrich

Reinstall packages after upgrade

36bb9bea 06/27/2009 07:37 PM Scott Ullrich

Use OLD_UFS_ID when replacing the old fstab entry (needs to be 0 or 1, not 1 or 2). Confusing!

feff69c9 06/27/2009 07:27 PM Scott Ullrich

Use UDS_ID when updating fstab

e9f72992 06/27/2009 05:44 PM Scott Ullrich

Use gpart to set the active partition slice

903f12d4 06/27/2009 04:46 AM Scott Ullrich

Turn off foot shooting when we are done.

9cc7a636 06/27/2009 04:38 AM Scott Ullrich

Fix diagnostics text

db7c7513 06/27/2009 04:36 AM Scott Ullrich

use GLABEL_SLICE

79b9570c 06/27/2009 03:43 AM Scott Ullrich

umount correct slice. cleanup code and add log for normal upgrade too

29fb3e02 06/27/2009 01:20 AM Scott Ullrich

Use '' since we are already in a ""

5924c7f8 06/27/2009 12:57 AM Scott Ullrich

Output ls -lah /dev/ as well

db3c87be 06/27/2009 12:46 AM Scott Ullrich

Oops, add spacer before command name output

2eedd055 06/27/2009 12:44 AM Scott Ullrich

Add some extra diagnostics which might help diagnose an upgrade problem after the fact

4e3c4f13 06/27/2009 12:37 AM Scott Ullrich

Do not append variable

36fcc0ad 06/27/2009 12:30 AM Scott Ullrich

Move stray |
Write out log to /cf/upgrade_log.txt so we can see the upgrade log after reboot

93585de9 06/27/2009 12:27 AM Scott Ullrich

Use GLABEL_SLICE

63f29ad5 06/27/2009 12:15 AM Scott Ullrich

Use correct names. Mount correct directory and modify fstab

bbae22d6 06/26/2009 11:31 PM Scott Ullrich

Check for pfsense and not pfsense1

a3b8edea 06/26/2009 08:58 PM Scott Ullrich

Foot shooting is fun. Add some debugging echos to logger

df5ffcf6 06/26/2009 07:21 PM Scott Ullrich

When running fsck_ffs to check the validity of the upgrade, check ${TOFLASH}a

99760ae6 06/26/2009 07:16 PM Scott Ullrich

Out image to the slice and not a

cfa379bd 06/26/2009 07:10 PM Scott Ullrich

Use REAL_BOOT_DEVICE

004675b6 06/26/2009 07:10 PM Scott Ullrich

Set slice as well

498be2fc 06/26/2009 06:00 PM Scott Ullrich

Add my (C) since I have rewritten large portions of this file. Remove firmware lock if we exit before doing an upgrade.

15533c1e 06/26/2009 04:25 PM Scott Ullrich

Operate on real devices instead of glabels

0200ad7b 06/26/2009 05:18 AM Scott Ullrich

Output more text

ac8de020 06/26/2009 05:11 AM Scott Ullrich

Output everything for debugging. Do not sleep.

baabd21d 06/26/2009 05:09 AM Scott Ullrich

No need to remove firmware.lock twice

cba6ac91 06/26/2009 05:07 AM Scott Ullrich

Mount $TOFLASH and check for post upgrade command

35aa9ecd 06/26/2009 05:05 AM Scott Ullrich

Stop sleeping

15ed384a 06/26/2009 05:03 AM Scott Ullrich

Pre_upgrade commands not supported ATM on nanobsd upgrades

5423f1a0 06/26/2009 05:02 AM Scott Ullrich

Reboot after upgrade and do not check for /tmp/ file which will never be able to be set.

9492ad9d 06/26/2009 05:00 AM Scott Ullrich

Exit on failure

31abe4ea 06/26/2009 04:56 AM Scott Ullrich

No need to \" in this case

69025059 06/26/2009 04:41 AM Scott Ullrich

/root/pfsense/

453a59ca 06/26/2009 01:52 AM Scott Ullrich

rename root0 and root1 pfsense0 and pfsense1

c36e48f0 06/26/2009 12:06 AM Scott Ullrich

Remove copy-and-pasted code. Add globals.inc, too we need to define $g

e348af75 06/25/2009 11:55 PM Scott Ullrich

Add support for nanobsd upgrades

6a581b52 06/24/2009 06:20 PM Scott Ullrich

Use updatep1 from /root/

0fd8c409 06/24/2009 05:15 PM Scott Ullrich

Oops, zcat not cat the nanobsd update file

f93a2816 06/24/2009 04:06 PM Scott Ullrich

Let update1 handle file modifications

c2aff9da 06/24/2009 03:47 PM Scott Ullrich

Add pfSenseNanoBSDupgrade upgrade routine

03918ae1 04/17/2009 03:03 AM Scott Ullrich

Remove lock hold later on

6e75ac00 04/17/2009 02:21 AM Scott Ullrich

Correct ordering, use a lock file. Launch upgrade in bg and look for lock file to guess if upgrade is in progress

4a8e802d 07/07/2008 02:06 AM Scott Ullrich

Add pre_upgrade_command hook support

84aa381e 05/18/2008 11:51 PM Scott Ullrich

Restore to 1.2-RELEASE file.

fee835af 03/29/2008 09:33 PM Scott Ullrich

Revert rc.firmware to a known working state now that the builder
process is a bit more sane.

5ee26051 03/22/2008 05:15 AM Scott Ullrich
  • Use /tmp/firmwareupgrades
  • Explode a mtree out to guarnatee we can extract a file
c01443f1 03/22/2008 12:44 AM Scott Ullrich

Latest round of fixes

e725bc6a 03/21/2008 11:50 PM Scott Ullrich

Remove .tar file if it exists before extracting.

d0b4f116 03/21/2008 11:45 PM Scott Ullrich

Correctly install files.

568ce5f4 03/21/2008 09:53 PM Scott Ullrich

Do not pass z flag to tar. The item is now gzipped.

f8c978e5 03/17/2008 04:02 AM Scott Ullrich
  • Do not worry about egrepping filenames
  • Surround locations in ""
5d14cbff 03/17/2008 03:59 AM Scott Ullrich

Remove firmware image once completed

41235422 03/17/2008 03:54 AM Scott Ullrich

Uncompress archive before tarring it. This avoids compression seek slowdowns

Suggested-by: cmb

dbb59707 03/17/2008 02:32 AM Scott Ullrich

chflags noschg file before rm

62d57e6d 03/17/2008 12:49 AM Scott Ullrich

Remove exec statement

afadfc62 03/17/2008 12:39 AM Scott Ullrich

Missing /

b00d1ade 03/17/2008 12:27 AM Scott Ullrich

Use install when upgrading.

69c4d460 05/09/2007 05:35 AM Scott Ullrich

Unlink upgrade file on upgrade.

8f798977 04/08/2007 11:46 PM Scott Ullrich

Remove configuration lock that would be acquired when you login to ssh after a firmware update.

Ticket #1258

d0b3b0b1 10/03/2006 10:01 PM Scott Ullrich

Run /tmp/post_upgrade_command after update if it exists

2b61eeb1 10/03/2006 09:57 PM Scott Ullrich

if the update firmware unpacks /tmp/no_upgrade_reboot_required then do not reboot after update.

51c9db03 04/16/2006 12:38 AM Scott Ullrich

Redirect scripts output to /tmp/firmware_update.log

97ab7fdc 04/16/2006 12:32 AM Scott Ullrich

Do not process custom image unless it really exists.

Before it was detecting an image of "" and triggering the -C error.

feb570f1 04/16/2006 12:24 AM Scott Ullrich

Do not process custom image unless it really exists.

Before it was detecting an image of "" and triggering the -C error.

bf7b4fcc 04/16/2006 12:13 AM Scott Ullrich

Switch to cd / && tar instead of -C to avoid:

tar: Error opening archive: Failed to open '-C': No such file or directory

cba9c643 04/02/2006 11:01 PM Scott Ullrich

Echo to WALL when upgrades begin

3ff346b9 01/05/2006 02:27 AM Scott Ullrich

Cleanup upgrade script

Thanks to Dario for helping!

24fbf166 01/05/2006 02:08 AM Scott Ullrich

Cleanup upgrade script

Thanks to Dario for helping!

58fb67ec 09/22/2005 03:40 PM Scott Ullrich

Do not run end of upgrade commands all the time. Only run after an upgrade.

242c837f 09/22/2005 03:30 PM Scott Ullrich

Do not create /ftmp ram disk. We are using /tmp at the moment.

7a35466c 09/07/2005 08:21 PM Scott Ullrich

if /etc/init_bootloader.sh exists, run this after upgrade. This will be the original bsdlabel command that was run.

ab821eae 09/07/2005 06:20 PM Scott Ullrich

Mount RO at the end of the file

21fbee83 09/07/2005 06:17 PM Scott Ullrich
  • sync before forcing umount.
  • sleep for 5 seconds
2abc3c88 08/31/2005 09:25 PM Scott Ullrich

call sync before umounting

37c39d36 08/31/2005 09:24 PM Scott Ullrich

unmount / after upgrade

c43e0966 08/31/2005 09:19 PM Scott Ullrich

use "/sbin/mount -w -o noatime /" to mount / on upgrade.

for some reason calling php from this script is very problematic. workaround this for now.

2a1fad88 08/20/2005 06:37 AM Scott Ullrich

Do not redirect console.

444c89d4 08/20/2005 03:29 AM Scott Ullrich

Do not process non-existant /sys