Project

General

Profile

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

# Date Author Comment
ba8e0870 11/14/2010 12:36 PM Erik Fonnesbeck

Copy /boot/loader.conf.local to the newly imaged slice. Ticket #892

476aa14b 07/30/2010 11:34 PM Scott Ullrich

Use rc.firmware_notify to send a message when upgrade starts and completed

d29d05ab 07/30/2010 11:30 PM Scott Ullrich

Broadcast when a firmware upgrade is completed

6fe72bc8 07/29/2010 06:03 PM Jim Pingle

Use cp -p to preserve permissions (exec)

bf072179 07/29/2010 06:03 PM Jim Pingle

Save the old shutdown binary in an attempt to smooth a firmware upgrade that crosses to/from 32/64-bit.

2cd85631 05/25/2010 03:27 PM Jim Pingle

Remove logs from temp config backup so they aren't clobbered when restored.

78d7e759 05/25/2010 03:27 PM Jim Pingle

Standardize upgrade log filenames

ce09186c 05/25/2010 03:27 PM Jim Pingle

Backup all of /conf including subdirectories during upgrade instead of just files in /conf/

e588bd54 05/24/2010 08:43 PM Jim Pingle

Insulate some variables as they are used.

b2f626b2 03/08/2010 07:04 PM Ermal Luçi

Add missing unmount calls.

a331bc2a 12/09/2009 08:59 PM Scott Ullrich

Note that the file will be labeled nanobsd upgrade

d2307ffb 11/14/2009 03:26 AM Scott Ullrich

Patch from Ron Lockard that fixed restore_chflags due to a STDOUT redirection issue

efdf0b9c 10/22/2009 05:35 PM Scott Ullrich

Correctly note that the pfSenseupgrade is starting

9974dae5 10/13/2009 07:18 PM Scott Ullrich

Remove upgrade IMG file after failure

3bcd5555 09/16/2009 01:16 PM Renato Botelho

Remove image file when error occour because image file is greater than partition size

80682f55 09/10/2009 10:51 PM Scott Ullrich

Add 1 meg to on size disk image

7335c4cf 09/10/2009 10:35 PM Scott Ullrich

Remove /var/run/firmware.lock as well

5d15e968 09/10/2009 10:29 PM Scott Ullrich

Show what each of the numbers are during a upgrade size failure check

f4ea0192 07/24/2009 11:41 PM Scott Ullrich

Show size of detected on disk partition and size of upgrade file

0bc8c0b0 07/23/2009 04:13 AM Scott Ullrich

Minor commnets

32a6b30c 07/23/2009 01:59 AM Scott Ullrich

Set kern.geom.debugflags=16

b90885ff 07/08/2009 12:45 AM Scott Ullrich

Add a seatbelt check to ensure the on disk partition is the same size (or larger) and bail if it has any issues.

99623bd5 07/06/2009 03:51 AM Scott Ullrich

Set boot slice correctly (reversed logic)

c5eb3a17 07/06/2009 03:02 AM Scott Ullrich

Add and use fdisk_upgrade_log.txt

af214f1d 07/06/2009 01:38 AM Scott Ullrich

Send file list to its own logfile

e213b6fc 07/05/2009 10:48 PM Scott Ullrich

Remove foot shooting code that was commented out. It is not necessary for this. Enhance a comment about why we need boot0cfg

ac2bed30 07/05/2009 10:09 PM Scott Ullrich

Use obs and gzip -dc

b4047760 07/05/2009 07:02 PM Scott Ullrich

Set active partition with boot0cfg too

7f38e934 07/05/2009 06:57 PM Scott Ullrich

Use bzcat

dfb5933a 07/05/2009 06:21 PM Scott Ullrich

Remove debugflags and boot0cfg. NanoBSD does not use either of these when upgrading.

f22c94e0 07/05/2009 03:08 AM Scott Ullrich

Reset log file on each invocation

e7b0b0f7 07/05/2009 02:51 AM Scott Ullrich

Use fsck_ufs

53e85f50 07/05/2009 02:11 AM Scott Ullrich

Get a complete find prinout of disk structure

7b4accd9 07/05/2009 01:58 AM Scott Ullrich

Use 64k block size

d7816d1b 07/05/2009 01:56 AM Scott Ullrich

Use same block size (64k) as builder scripts.

0e50dda6 07/05/2009 12:40 AM Scott Ullrich

Make upgrade file easier to read

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