Make this name a little more general in case we decide to have multiple similar files.
If upgrading NanoBSD, try to grab the previous timezone file so the zone is preserved on the next boot.
Also run mtree check post-upgrade.
Be a little smarter about the default kernel in rare cases where we cannot determine what was in use.
Remove other potential places where someone could select a kernel we no longer ship. Try to improve kernel detection a little more.
Don't skip over wrap_vga here.
Be more verbose during upgrade to see why nanobsd isn't carrying over the setting as expected.
Fixup post-update processing on NanoBSD
Fix filename used in check for existence of the uniprocessor kernel to match the one that was being used to extract.
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
Clean up .profile and .shrc
Setup serial bits after upgrade on NanoBSD, too.
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.
Exclude loader.conf from being update during kernel update
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.
Overwrite .cshrc and .profile
Escape command
Handle console too for noninteractive
Backout last commit, need to figure out the console angle as well
Fix non-interactive script bug on upgrade.
Only signal a package reinstall on full installations.
Signal a package reinstall after upgrade
Do not assume that we ship uniprocessor kernel on LiveCD any longer.
Untar the complete kernel to /boot/ instead of just the kernel file itself
Nuke /usr/local/sbin/php if it exists on upgrade
Move ttys_wrap into place last.
Check value of /etc/platform when installing the correct ttys file.
Reported-by: Vivek Khera
Nuke cvs_sync.sh on upgrade now that it resides in pfSsh.php
Remove any previous MD5 sums after upgrade.
From Seth:
Only zap /kernels directory if it exists
Reinstall correct kernel after upgrade.
Upgrade RELENG_1 as well for embedded.