Commit Graph

43 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
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
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
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
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
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
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
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
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
7770cea849 Only signal a package reinstall on full installations. 2008-07-22 16:18:47 +00:00
Scott Ullrich
71bd8e0693 Signal a package reinstall after upgrade 2008-07-07 01:47:04 +00:00
Scott Ullrich
b3191bd2fc Do not assume that we ship uniprocessor kernel on LiveCD any longer. 2008-06-17 01:07:31 +00:00
Scott Ullrich
0d77165262 Untar the complete kernel to /boot/ instead of just the kernel file itself 2008-03-30 21:27:44 +00:00
Scott Ullrich
998bc8a5e8 Nuke /usr/local/sbin/php if it exists on upgrade 2007-12-24 01:59:49 +00:00
Scott Ullrich
988724dafd Move ttys_wrap into place last. 2007-12-23 21:38:16 +00:00
Scott Ullrich
3b6e12c402 Check value of /etc/platform when installing the correct ttys file.
Reported-by: Vivek Khera
2007-11-29 17:22:42 +00:00
Scott Ullrich
7a291481e9 Nuke cvs_sync.sh on upgrade now that it resides in pfSsh.php 2007-11-23 22:34:28 +00:00
Scott Ullrich
24c4023c00 Remove any previous MD5 sums after upgrade.
From Seth:
2007-11-07 23:09:00 +00:00
Scott Ullrich
caae9b2c61 * The drop is locked in /etc/rc.firmware * Modify ttys after the correct file is moved into place 2007-08-02 18:46:44 +00:00
Scott Ullrich
33edf4b995 * Drop the lock before exiting * Fall back to RO on needed platforms before exiting 2007-08-02 18:44:36 +00:00
Scott Ullrich
d58803a8fa Only zap /kernels directory if it exists 2007-08-02 18:36:00 +00:00
Scott Ullrich
8dd92eaee8 * Ensure source kernel exists before blindly copying * Move embedded ttys back into place after upgrade 2007-08-02 18:31:25 +00:00
Scott Ullrich
f9b3f262c4 Reinstall correct kernel after upgrade. 2007-08-02 07:32:11 +00:00
Scott Ullrich
5f26831ee7 Upgrade RELENG_1 as well for embedded. 2007-05-09 21:04:32 +00:00