aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sysinstall/installUpgrade.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge revision 170320:Xin LI2008-09-291-1/+1
| | | | | | | | | | | | Write to slice name instead of directly to the disk device. This fixes writing boot code upon upgrade. PR: bin/61587 Submitted by: Nobuyuki Koganemaru <n-kogane syd.odn.ne.jp> Approved by: re (blackend) Notes: svn path=/stable/6/; revision=183457
* MFC revisions 1.92, 1.94 and 1.95.Ceri Davies2007-01-211-7/+26
| | | | Notes: svn path=/stable/6/; revision=166163
* MFC revisions 1.90, 1.91 and 1.93:Ceri Davies2006-12-311-4/+4
| | | | | | | | | | | | 1.90: Fix typos in comments. 1.91: Add /lib and /libexec to the list of directories that have the schg flag removed prior to an upgrade. 1.93: Fix a pair of user-visible typos. Approved by: ru Notes: svn path=/stable/6/; revision=165700
* MFC revision 1.89:Ceri Davies2006-07-171-2/+9
| | | | | | | Bring the "just copy" hit list closer to date. Notes: svn path=/stable/6/; revision=160458
* MFC revision 1.88:Ceri Davies2006-07-171-6/+7
| | | | | | | | | | | Update the location of the kernel for upgrades. I considered leaving /boot/kernel out of the chflags noschg line, but I seem to remember that there was a period where /boot/kernel was schg, so have left it in for safety's sake. Notes: svn path=/stable/6/; revision=160457
* MFC r1.87:Ceri Davies2006-05-051-1/+1
| | | | | | | | | | | Fix binary upgrades by accounting for the schg flag on /var/empty. PR: 96711, 96780 Submitted by: Nobuyuki Koganemaru, Martin Jackson Approved by: re (scottl) Notes: svn path=/stable/6/; revision=158318
* MFC r1.85:Philip Paeps2005-12-031-0/+1
| | | | | | | | | Preserve /etc/sysctl.conf when doing a binary update. This prevents, for instance, the dreaded shared memory problem in PostgreSQL coming back to haunt you after a binary update. Notes: svn path=/stable/6/; revision=153053
* KerberosIV deorbit sequence: Un-teach sysinstall about KerberosIV. I'mMark Murray2003-03-081-1/+0
| | | | | | | | not 100% sure that I've done this in the right way. If folks want to revisit this, please be my guest. Notes: svn path=/head/; revision=111991
* Removed the vestiges of modems(5).Ruslan Ermilov2002-11-271-1/+0
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107318
* Change our default XF86Config location from /etc/ to /etc/X11/,David E. O'Brien2002-06-101-1/+1
| | | | | | | | | following the lead of The XFree86 Project's default. Approved by: Murray Notes: svn path=/head/; revision=98079
* Change the name of the 'bin' distribution to 'base'.David E. O'Brien2002-04-231-11/+11
| | | | | | | | | | This is done since it contains much more than /bin, and also gets in the way when making a combined install+fixit CD. OK'ed by: jkh Notes: svn path=/head/; revision=95327
* Our persistent-state, large temporary file dir is /VAR/tmp, not /USR/tmp.David E. O'Brien2002-04-011-2/+2
| | | | Notes: svn path=/head/; revision=93595
* Add nsmb.conf to the resurrection list.Sheldon Hearn2001-12-271-0/+1
| | | | | | | | Submitted by: olgeni Approved by: re Notes: svn path=/head/; revision=88515
* sysinstall's binary upgrade option used to display the contents ofBruce A. Mah2001-09-041-3/+5
| | | | | | | | | | | | | | | UPGRADE.TXT along with a YesNo dialog requesting confirmation of the upgrade. During the transition to RELNOTESng, UPGRADE.TXT got folded into a file that eventually renders as INSTALL.TXT, which makes sysinstall complain about a non-existent file. As a solution/workaround, point the user at INSTALL.TXT, and then request confirmation. Noticed by: rpratt (on 4.4-RC3) Approved by: jkh Notes: svn path=/head/; revision=83020
* Preserve /etc/hosts.allow and /etc/dhclient.conf during upgrades.Jordan K. Hubbard2001-08-311-0/+2
| | | | | | | Noted by: Tim Zingelman <zingelman@fnal.gov> Notes: svn path=/head/; revision=82680
* Introduce DEVICE_INIT, DEVICE_GET, and DEVICE_SHUTDOWN macros. As theDima Dorfman2001-07-021-2/+2
| | | | | | | | | | | | names suggest, they perform methods on Device's. In addition, they check that the pointer passed to them is valid; if it isn't, they pretend that the action failed. This fixes some crashes due to NULL dereferences (e.g., PR 26509). Approved by: jkh (some time ago) Notes: svn path=/head/; revision=79065
* Preserve ssh directory across upgrades.Jordan K. Hubbard2001-03-241-0/+1
| | | | | | | | Submitted by: Edwin Groothuis <edwin@mavetju.org> PR: conf/25633 Notes: svn path=/head/; revision=74730
* Properly preserve /etc/mail during upgrades.Jordan K. Hubbard2001-02-211-0/+1
| | | | | | | | PR: misc/23048 Submitted by: jack@germanium.xtalwind.net Notes: svn path=/head/; revision=72787
* Really turn off srcs for upgrades.Jordan K. Hubbard2000-11-141-0/+1
| | | | Notes: svn path=/head/; revision=68730
* Add nsswitch support. By creating an /etc/nsswitch.conf file, you canJacques Vidrine2000-09-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | configure FreeBSD so that various databases such as passwd and group can be looked up using flat files, NIS, or Hesiod. = Hesiod has been added to libc (see hesiod(3)). = A library routine for parsing nsswitch.conf and invoking callback functions as specified has been added to libc (see nsdispatch(3)). = The following C library functions have been modified to use nsdispatch: . getgrent, getgrnam, getgrgid . getpwent, getpwnam, getpwuid . getusershell . getaddrinfo . gethostbyname, gethostbyname2, gethostbyaddr . getnetbyname, getnetbyaddr . getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr = host.conf has been removed from src/etc. rc.network has been modified to warn that host.conf is no longer used at boot time. In addition, if there is a host.conf but no nsswitch.conf, the latter is created at boot time from the former. Obtained from: NetBSD Notes: svn path=/head/; revision=65532
* Be neater with the screen contents.Jordan K. Hubbard2000-02-261-6/+7
| | | | Notes: svn path=/head/; revision=57509
* Include /usr/libexec in the list of upgrade targets by chflags'ing it first.Jordan K. Hubbard2000-02-151-1/+1
| | | | Notes: svn path=/head/; revision=57236
* Completely rip-out and redesign sysinstall's refresh model as wellJordan K. Hubbard1999-12-141-17/+14
| | | | | | | | | | | | | | | as redoing all the menus to have proper, or at least non-hallucinogenic, keyboard accelerators. This requires my recent update to libdialog to work properly and will probably also exhibit some other "interesting" behavior while the last few missing screen clears are found (which is why I'm not going to MFC immediately). At least now, however, sysinstall does not gratuitously redraw random screens at the drop of a hat and drive serial console installers out of their minds. Notes: svn path=/head/; revision=54587
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50479
* Preserve /root's dotfiles across upgrades too.Jordan K. Hubbard1999-05-111-1/+5
| | | | | | | PR: 6559 Notes: svn path=/head/; revision=46994
* Don't allow upgrade to touch /usr/src; only evil can result fromJordan K. Hubbard1999-04-071-1/+12
| | | | | | | that kind of overlay smashing. Notes: svn path=/head/; revision=45402
* Add /etc/rc.firewall to list of "save after upgrade" targets.Jordan K. Hubbard1999-03-191-1/+2
| | | | Notes: svn path=/head/; revision=44890
* Write out new boot blocks on upgrade.Jordan K. Hubbard1999-02-151-1/+3
| | | | Notes: svn path=/head/; revision=44036
* Update to current state of /etcJordan K. Hubbard1999-02-131-17/+12
| | | | Notes: svn path=/head/; revision=43949
* Totally change the way variables are accounted for in sysinstall.Jordan K. Hubbard1999-02-051-5/+5
| | | | | | | | | | | Now we know which variables are internal and which need to be backed to /etc/rc.conf.site. rc.conf is not touched now. Also kget kernel change information back properly and set up a loader.rc file to use it. Notes: svn path=/head/; revision=43685
* o Break fixups into binary fixups and XFree86 based fixups.Jordan K. Hubbard1998-11-151-23/+1
| | | | | | | | | | | o Move fixups into extraction routine so all consumers don't have to duplicate the right behavior. o Make some things more orthogonal (just for asthetics sake) o Add option to go back and do it again if XF86Setup fails (possibly with a different setup - this one has always annoyed me). Notes: svn path=/head/; revision=41162
* Deal with both foo.hlp and FOO.TXT files.Jordan K. Hubbard1998-11-031-2/+2
| | | | Notes: svn path=/head/; revision=40841
* Add /usr/lib to the list of things to chflag before upgrading.Jordan K. Hubbard1998-08-281-2/+2
| | | | | | | Noticed by: Blaz Zupan <blaz@gold.amis.net> Notes: svn path=/head/; revision=38594
* Add 'newsyslog.conf' to the list of files to not clobberSteve Price1998-05-241-1/+2
| | | | | | | | | during the upgrade process. PR: 6629 Notes: svn path=/head/; revision=36320
* Sync with 2.2-stable branch.Jordan K. Hubbard1998-03-241-7/+12
| | | | Notes: svn path=/head/; revision=34867
* MF22: resync.Jordan K. Hubbard1998-03-231-1/+2
| | | | Notes: svn path=/head/; revision=34811
* MF22: install correct kernelJordan K. Hubbard1998-03-211-5/+6
| | | | Notes: svn path=/head/; revision=34733
* Do chflags properly even when running multi-user.Jordan K. Hubbard1997-10-291-5/+5
| | | | Notes: svn path=/head/; revision=30832
* Separate the siamese twins that were the partition and label editor.Jordan K. Hubbard1997-10-121-14/+15
| | | | | | | | | Now you can use one without entering the other and it will DTRT. These changes just allowed me to do the most straight-forward new disk installation I've ever managed with sysinstall. Notes: svn path=/head/; revision=30345
* Keep fingers off /etc files until they're properly backed up.Jordan K. Hubbard1997-10-011-16/+16
| | | | | | | | PR: 4636 Submitted by: Jack <jack@zeus.xtalwind.net> Notes: svn path=/head/; revision=30018
* Be more cautious about leaving user with a workable kernel during theJordan K. Hubbard1997-09-091-2/+7
| | | | | | | | upgrade process. Submitted by: Mikael Karpberg <karpen@ocean.campus.luth.se> Notes: svn path=/head/; revision=29236
* Make upgrade potentially a little less interactive.Jordan K. Hubbard1997-09-081-2/+138
| | | | | | | | Add and document new loadConfig function (sort of like a script #include). Make TCP/IP setup far less chatty when it doesn't need to be. Notes: svn path=/head/; revision=29222
* Merge 1.33.2.12 from 2.2Jordan K. Hubbard1997-05-091-1/+5
| | | | Notes: svn path=/head/; revision=25601
* Adapt to rc.conf file format.Jordan K. Hubbard1997-04-281-2/+2
| | | | Notes: svn path=/head/; revision=25251
* Sync up to current state of development.Jordan K. Hubbard1997-04-021-1/+2
| | | | Notes: svn path=/head/; revision=24548
* Merge all my sysinstall changes over to the 2.1 branch.Jordan K. Hubbard1997-03-111-2/+2
| | | | | | | I just have this feeling... :) Notes: svn path=/head/; revision=23647
* YAMF22Jordan K. Hubbard1997-03-071-7/+6
| | | | Notes: svn path=/head/; revision=23500
* It's easier to go forwards than backwards with this, and the RELENG_2_1_0Jordan K. Hubbard1997-02-071-1/+1
| | | | | | | | sysinstall was already broken (I think there's a PR for this somewhere). This will require some additional changes elsewhere, like bringing in pw. Notes: svn path=/head/; revision=22388
* Do media initialization at correct time for upgrade too.Jordan K. Hubbard1997-01-291-15/+18
| | | | | | | Update /stand. Notes: svn path=/head/; revision=22072
* Now that I know which parts of the installation really need it (sinceJordan K. Hubbard1997-01-171-7/+7
| | | | | | | | there's no menu display bug to work around now), be far more selective in my use of DITEM_RECREATE (which is slow and involves much screen I/O). Notes: svn path=/head/; revision=21792