Commit Graph

191 Commits

Author SHA1 Message Date
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
Erik Fonnesbeck
ba8e08709a Copy /boot/loader.conf.local to the newly imaged slice. Ticket #892 2010-11-14 05:36:28 -07:00
Scott Ullrich
476aa14b9f Use rc.firmware_notify to send a message when upgrade starts and completed 2010-07-30 19:34:48 -04:00
Scott Ullrich
d29d05ab8e Broadcast when a firmware upgrade is completed 2010-07-30 19:30:37 -04:00
jim-p
6fe72bc84e Use cp -p to preserve permissions (exec) 2010-07-29 14:03:36 -04:00
jim-p
bf07217998 Save the old shutdown binary in an attempt to smooth a firmware upgrade that crosses to/from 32/64-bit. 2010-07-29 14:03:19 -04:00
jim-p
2cd8563160 Remove logs from temp config backup so they aren't clobbered when restored. 2010-05-25 11:27:31 -04:00
jim-p
78d7e759b6 Standardize upgrade log filenames 2010-05-25 11:27:30 -04:00
jim-p
ce09186c9d Backup all of /conf including subdirectories during upgrade instead of just files in /conf/ 2010-05-25 11:27:29 -04:00
jim-p
e588bd54bd Insulate some variables as they are used. 2010-05-24 16:43:51 -04:00
Ermal Luçi
b2f626b200 Add missing unmount calls. 2010-03-08 19:04:20 +00:00
sullrich
a331bc2a2a Note that the file will be labeled nanobsd upgrade 2009-12-09 15:59:30 -05:00
Scott Ullrich
d2307ffb56 Patch from Ron Lockard that fixed restore_chflags due to a STDOUT redirection issue 2009-11-13 22:26:06 -05:00
sullrich
efdf0b9cac Correctly note that the pfSenseupgrade is starting 2009-10-22 13:35:35 -04:00
Scott Ullrich
9974dae5a2 Remove upgrade IMG file after failure 2009-10-13 15:18:07 -04:00
Renato Botelho
3bcd5555f6 Remove image file when error occour because image file is greater than partition size 2009-09-16 10:16:23 -03:00
Scott Ullrich
80682f553f Add 1 meg to on size disk image 2009-09-10 18:51:25 -04:00
Scott Ullrich
7335c4cf60 Remove /var/run/firmware.lock as well 2009-09-10 18:35:12 -04:00
Scott Ullrich
5d15e96879 Show what each of the numbers are during a upgrade size failure check 2009-09-10 18:29:46 -04:00
Scott Ullrich
f4ea019240 Show size of detected on disk partition and size of upgrade file 2009-07-24 19:41:28 -04:00
Scott Ullrich
0bc8c0b058 Minor commnets 2009-07-23 00:13:00 -04:00
Scott Ullrich
32a6b30cb3 Set kern.geom.debugflags=16 2009-07-22 21:59:50 -04:00
Scott Ullrich
b90885ff96 Add a seatbelt check to ensure the on disk partition is the same size (or larger) and bail if it has any issues. 2009-07-07 20:45:58 -04:00
Scott Ullrich
99623bd57a Set boot slice correctly (reversed logic) 2009-07-05 23:51:33 -04:00
Scott Ullrich
c5eb3a1783 Add and use fdisk_upgrade_log.txt 2009-07-05 23:02:39 -04:00
Scott Ullrich
af214f1da0 Send file list to its own logfile 2009-07-05 21:38:01 -04:00
Scott Ullrich
e213b6fc50 Remove foot shooting code that was commented out. It is not necessary for this. Enhance a comment about why we need boot0cfg 2009-07-05 18:48:24 -04:00
Scott Ullrich
ac2bed30fb Use obs and gzip -dc 2009-07-05 18:09:04 -04:00
Scott Ullrich
b404776012 Set active partition with boot0cfg too 2009-07-05 15:02:28 -04:00
Scott Ullrich
7f38e9340e Use bzcat 2009-07-05 14:57:45 -04:00
Scott Ullrich
dfb5933ae5 Remove debugflags and boot0cfg. NanoBSD does not use either of these when upgrading. 2009-07-05 14:21:04 -04:00
Scott Ullrich
f22c94e090 Reset log file on each invocation 2009-07-04 23:08:51 -04:00
Scott Ullrich
e7b0b0f7fc Use fsck_ufs 2009-07-04 22:51:28 -04:00
Scott Ullrich
53e85f50ae Get a complete find prinout of disk structure 2009-07-04 22:11:20 -04:00
Scott Ullrich
7b4accd9cc Use 64k block size 2009-07-04 21:58:14 -04:00
Scott Ullrich
d7816d1b8c Use same block size (64k) as builder scripts. 2009-07-04 21:56:25 -04:00
Scott Ullrich
0e50dda6b0 Make upgrade file easier to read 2009-07-04 20:40:03 -04:00
Scott Ullrich
b6b87fef6e Output bsdlabel -A diagnostics as well 2009-07-03 17:52:46 -04:00
Scott Ullrich
ad526b14d9 Output all slice information prior to upgrade, after dd operations and the final. 2009-07-03 17:49:17 -04:00
Scott Ullrich
6b3e473412 Output logs to /conf/ 2009-07-03 17:32:13 -04:00
Scott Ullrich
6decd751aa revert 2009-07-03 17:27:09 -04:00
Scott Ullrich
d5c182eb21 Use COMPLETE_PATH 2009-07-03 16:56:13 -04:00
Scott Ullrich
d4b8f9a8c8 Sleep for 10 seconds before rebooting and allow disks to catch up 2009-06-30 21:24:34 -04:00
Ermal Luçi
a368a026db * 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
	- This improves a lot the control on this notification
2009-06-30 17:15:22 +00:00
Scott Ullrich
3e0621caec Mount RW when script launches 2009-06-30 00:19:56 -04:00
Scott Ullrich
1a4075a9c1 Send log file to /conf/ 2009-06-29 23:49:37 -04:00
Scott Ullrich
d226535c8e Add bit when restoring for diagnostics 2009-06-29 21:28:13 -04:00
Scott Ullrich
e3ddf3858d Alert when we are doing a NanoBSD style upgrade. 2009-06-29 16:58:28 -04:00
Scott Ullrich
50ba07eaf1 Mount RW so we can write to logs. Duh. Mount RO if we exit out of an upgrade. 2009-06-29 16:47:02 -04:00
Scott Ullrich
bc43f0eead Mount RW so we can write to logs. Duh. Mount RO if we exit out of an upgrade. 2009-06-29 16:45:24 -04:00