summaryrefslogtreecommitdiffstats
path: root/usr.sbin/freebsd-update
Commit message (Collapse)AuthorAgeFilesLines
* MFC r302534:delphij2016-07-111-1/+1
| | | | | | | | | | Allow - in distribution names. This is needed for freebsd-update to work with 11.0+, where the debugging symbols use a new naming scheme for release distribution files. Errata candidate. Approved by: re (gjb)
* Provide a future release as an example, instead of a historical one.glebius2016-02-051-1/+1
|
* Add debug file extension to freebsd-update(8) after r288176emaste2015-10-151-1/+1
| | | | | | Reviewed by: delphij Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3784
* Add --currently-running <release> option to freebsd-update.cperciva2015-10-092-0/+10
| | | | | | | | | | This option tells freebsd-update to act as if it is running a specific release instead of querying the kernel. In particular, this can be useful when upgrading jails. Requested by: EuroBSDCon devsummit jails session Tested by: allanjude MFC after: 1 week
* Skip src component if /usr/src is empty.delphij2015-06-151-4/+12
| | | | | | | Differential Revision: https://reviews.freebsd.org/D2364 Submitted by: kczekirda Reviewed by: cperciva, delphij, nwhitehorn, allanjude MFC after: 2 weeks
* Add META_MODE support.sjg2015-06-131-0/+11
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-272-31/+79
| |\ | |/ |/|
| * Merge from head@274682sjg2014-11-191-0/+8
| |\
| * \ Merge head from 7/28sjg2014-08-191-1/+1
| |\ \
| * \ \ Merge headsjg2014-04-281-23/+27
| |\ \ \
| * \ \ \ Merge from headsjg2013-09-051-2/+2
| |\ \ \ \
| * | | | | Updated dependenciessjg2013-02-161-2/+0
| | | | | |
| * | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | Fix syntax errors in conditions for new features in freebsd-updateallanjude2015-04-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D1550 Submitted by: kmoore Approved by: delphij Obtained from: PCBSD MFC after: 1 week X-MFC-With: 279571 Sponsored by: ScaleEngine Inc.
* | | | | | - Include commas in valid file-name chars freebsd-update will supportkmoore2015-03-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Approved by: cperciva
* | | | | | Add a new safetly belt to freebsd-update to prevent a user doing a minor ↵allanjude2015-03-032-8/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | update (-pX) while having an unfinished major upgrade (9.x to 9.y) Safetly belt can be disabled with the -F flag Additionally, add the --not-running-from-cron flag they bypasses the TTY requirement, and allows freebsd-update to be invoked by orchestration frameworks, scripts, or otherwise. PR: 196760 Differential Revision: https://reviews.freebsd.org/D1550 Reviewed by: cperciva, delphij Approved by: bcr (mentor), rodrigc (src) MFC after: 1 month Relnotes: yes Sponsored by: ScaleEngine Inc.
* | | | | | (backup_kernel_finddir, backup_kernel, install_files):thomas2015-02-131-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add missing references to $BASEDIR, in order to allow correct operation when updating a system mounted at another location than / (e.g. when updating an alternate Boot Environment). Reviewed by: cperciva MFC after: 1 week
* | | | | | When upgrading, install the ELF runtime linkers before libraries.brooks2015-02-061-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is required to prevent problems with nss modules that use libthr when upgrading from releases prior to 10.1. PR: 197366 Sponsored by: DARPA, AFRL Differential Revision: D1790 Reviewed by: cperciva MFC after: 3 days
* | | | | | Use "RCS tag" instead of "$FreeBSD$ tag", since svn will obedientlydes2014-12-221-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | expand the latter. MFC after: 3 days
* | | | | | Strip trailing / characters from paths in "not present" index entries, notcperciva2014-12-221-0/+1
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | just "directory" entries. Prior to this commit, if / was added as part of a security update (how? In the most recent case, because lib32 was accidentally omitted and was then re-added, and every installer distribution set gets its own paths) then the code which was supposed to filter out updates to deleted parts of the base system (if someone decides to delete / then we shouldn't re-create it for them) would instead get confused and decided that while / should exist, // should not exist and needs to be removed. This fixes the bug which caused freebsd-update to want to delete / (which is harmless, since `rm /` fails, but scary nonetheless). A workaround is being applied to the update bits in order to avoid triggering the bug on unpatched systems. PR: 196055, 196091, 196147
* | | | | Re-work non-persistent filesystem detection as it was not possible tofeld2014-11-181-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | detect /dev/md backed mfs filesystems that way. Differential Revision: https://reviews.freebsd.org/D1163 Approved by: ian
* | | | | Add logic for detecting non-persistent filesystems being utilized byfeld2014-11-171-0/+9
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | workdir which would break the upgrade process upon reboot. Currently we check for tmpfs and mdmfs. PR: 195006 Differential Revision: https://reviews.freebsd.org/D1163 Approved by: cperciva
* | | | use .Mt to mark up email addresses consistently (part2)bapt2014-06-201-1/+1
| |_|/ |/| | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
* | | Fix typo in r256646: We want to generate lists of directories in INDEX-OLDcperciva2013-11-091-2/+2
| | | | | | | | | | | | | | | | | | | | | and INDEX-NEW and compare them, not generate the same list of directories from INDEX-OLD twice... Pointy hats to: cperciva & everybody who didn't proofread EN-13:04 enough
* | | Be more selective when filtering for lib*.so.N files. These are deletedcperciva2013-10-241-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | at the end of the upgrade process, after warning users to upgrade any 3rd party software (e.g., from the ports tree) which might link to the libraries being removed. Prior to this commit, the line /usr/lib/libc.so|...|/lib/libc.so.7 matched the regex, which -- upgrading from 9.x to 10.x, where libc.so is a regular file and thus was not part of a line which matched the regex -- resulted in freebsd-update thinking that /usr/lib/libc.so was a shared library which was being removed as part of the upgrade. This had some unfortunate consequences. This will be part of an upcoming Errata Notice.
* | | Allow ~ in file names so libtool droppings in contrib don't break updates.des2013-10-191-1/+1
| | | | | | | | | | | | | | | | | | It has happened twice now, and is likely to happen again. Errata notice candidate.
* | | When installing updates, install new directories first and remove oldcperciva2013-10-161-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | directories last. This is generally handled by the fact that the list of filesystem objects is sorted, but this sorting is broken by code which moves .so files ahead (so that they're present before any binaries which use them)... that code also moved .so files ahead of directories, which is a problem for upgrading to 10.0 where there's a new directory containing new .so files. Errata Notice Candidate.
* | | Speed up `freebsd-update IDS` by using IFS to split fields instead ofcperciva2013-10-161-15/+2
| |/ |/| | | | | | | | | | | | | forking lots of processes to run echo|cut. In one test this reduced the CPU time from 980s to 134s and the wallclock time from 806s to 132s. Submitted by: Oleg Ginzburg
* | mdoc sweep.joel2013-05-121-2/+2
|/
* Fixes to man8 groff mandoc style, usage mistakes, or typos.wblock2012-05-241-1/+1
| | | | | | | PR: 168016 Submitted by: Nobuyuki Koganemaru Approved by: gjb MFC after: 3 days
* Remove trailing whitespace per mdoc lint warningeadler2012-03-291-1/+1
| | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days
* Add '%' and '@' to the set of characters which can appear in path names.cperciva2011-10-231-1/+1
| | | | Without this change, freebsd-update refuses to accept 9.0 metadata files.
* Make freebsd-update(8) smarter in how it handles $FreeBSD$ tags incperciva2011-05-111-3/+33
| | | | | | | | | | | | | | | | | | | configuration files. If the current file differs from the canonical version from the old release only due to differences in the $FreeBSD$ tag (which can happen if the system was installed from source code, depending on how the src tree was checked out) then freebsd-update will treat the file as "unmodified" and silently update it to the "clean" version in the new release. If the only change being made to a configuration file is in the $FreeBSD$ tag (e.g., for any configuration files which have been modified locally, now that we're using SVN and the $FreeBSD$ tag changes when a branch is created), freebsd-update will no longer print the diff and prompt "Does this look reasonable (y/n)?". Nagged by: pgollucci MFC after: 1 month
* Honor $PAGER instead of always calling more.gordon2011-01-241-4/+9
| | | | | Approved by: colin@ MFC after: 1 week
* Typo fix in a comment.bcr2010-11-101-1/+1
| | | | Reviewed by: cperciva
* mdoc: drop redundant .Pp and .LP callsuqs2010-10-081-1/+0
| | | | They have no effect when coming in pairs, or before .Bl/.Bd
* In backup_kernel(), support backing up subdirectories and handle filesjh2010-09-121-5/+6
| | | | | | | with spaces correctly. Approved by: cperciva MFC after: 1 month
* "freebsd-update fetch -r NEWRELEASE" is meaningless and probably a typocperciva2010-09-101-2/+14
| | | | | | | | for "freebsd-update upgrade -r NEWRELEASE". Error out and suggest what the user probably meant. Submitted by: James Seward MFC after: 1 month
* Add warning about freebsd-update upgrade needing lots of disk space.cperciva2010-09-101-0/+5
| | | | | Submitted by: jpaetzel MFC after: 1 month
* Remind the user that he needs to run 'freebsd-update install' to installcperciva2010-09-101-0/+4
| | | | | | | new bits after downloading them using 'freebsd-update upgrade'. Submitted by: bapt MFC after: 1 month
* Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki whilejoel2010-08-161-1/+1
| | | | | | translating these manual pages. Minor corrections by me. Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>
* Update some release version numbers. The patch is based on the onebcr2010-07-141-5/+5
| | | | | | | | | | | from the PR, but the version numbers reflect the newer ones from http://security.freebsd.org/#sup PR: docs/145227 Submitted by: Glen Barber (glen dot j dot barber at gmail dot com) Reviewed by: cperciva Mentored by: jkois MFC after: 1 week
* Fix several typos in macros or macro misusage.uqs2010-03-121-1/+1
| | | | | | Found by: make manlint Reviewed by: ru Approved by: philip (mentor)
* Disable SSL renegotiation in order to protect against a seriouscperciva2009-12-031-0/+1
| | | | | | | | | | | | | | | protocol flaw. [09:15] Correctly handle failures from unsetenv resulting from a corrupt environment in rtld-elf. [09:16] Fix permissions in freebsd-update in order to prevent leakage of sensitive files. [09:17] Approved by: so (cperciva) Security: FreeBSD-SA-09:15.ssl Security: FreeBSD-SA-09:16.rtld Security: FreeBSD-SA-09:17.freebsd-udpate
* Special-case "-r X" where X is [0-9.]+ to mean "-r X-RELEASE".cperciva2009-09-291-0/+3
| | | | | Tripped over by: too many people to count MFC after: 1 month
* Add support for backing up the old kernel when installing a new kernelsimon2009-08-191-1/+161
| | | | | | | | | | | | | | | | | | using freebsd-update. This applies to using freebsd-update in "upgrade mode" and normal freebsd-update on a security branch. The backup kernel will be written to /boot/kernel.old, if the directory does not exist, or the directory was created by freebsd-update in a previous backup. Otherwise freebsd-update will generate a new directory name for use by the backup. By default symbol files are not backed up to save diskspace and avoid filling up the root partition. This feature is fully configurable in the freebsd-update config file, but defaults to enabled. MFC after: 1 week (stable/7) Reviewed by: cperciva Approved by: re (kib)
* fix grammar...jmg2009-05-061-1/+1
| | | | Reviewed by: cperciva
* In `freebsd-update IDS`, strip out file flags before we look forcperciva2008-08-081-18/+18
| | | | | | | | non-matching index lines. This fixes a bug where bogus warnings would be printed file has the wrong file flags AND has been updated by FreeBSD Update. Reported by: Royce Williams
* Add "IDS" command to freebsd-update. This was present in the originalcperciva2008-08-022-2/+264
| | | | | | | | | | version of freebsd-update, but I took it out when I rewrote everything and added FreeBSD Update to the base system because I didn't think it was useful. It turns out that quite a few people liked it and wanted it back. Requested by: Royce Williams + others MFC after: 2 weeks
OpenPOWER on IntegriCloud