| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Make sure /var/syspatch/$OSREV is not on a read-only mount-point when doing | 2016-11-22 | 1 | -2/+2 | |
| | | | | | a rollback. | ||||
| * | Allow passing an explicit return code to sp_err() in case we don't want to exit | 2016-11-22 | 1 | -21/+24 | |
| | | | | | | | right away. Factorise some common stuff. Be consistent in variables subtitution. | ||||
| * | Use the same basename for the rollback tarball as the original patch.sig. | 2016-11-21 | 1 | -15/+21 | |
| | | |||||
| * | Tweak comment. Reverse cmp logic while here. | 2016-11-21 | 1 | -3/+3 | |
| | | |||||
| * | Re-add the root user checks in the quirks; that part is to be removed soon. | 2016-11-17 | 1 | -1/+5 | |
| | | |||||
| * | Drop priv. to the _pkgfetch (for now) user when running ftp(1) and signify(1). | 2016-11-17 | 1 | -24/+29 | |
| | | | | | | | | | | Similar to what the installer does. Listing installed patches and displaying the usage are now the only actions allowed to a non-privileged user. discussed with deraadt@ | ||||
| * | Merge comments altogether, it's easier to understand this way. | 2016-11-16 | 1 | -11/+9 | |
| | | | | | And drop some duplicate while here. | ||||
| * | If we install a new kernel, add /bsd twice (for size checking) when: | 2016-11-16 | 1 | -1/+9 | |
| | | | | | | - we are on an MP system (/bsd.mp does not exist there) - /bsd.syspatchXX is not present (create_rollback will add it) | ||||
| * | /bsd.rollbackXX -> bsd.syspatchXX to make it more obvious where it comes from | 2016-11-16 | 2 | -14/+17 | |
| | | | | | | and less prone to conflict. Simplify ls_installed while here. | ||||
| * | Small wording tweak and a couple of fixes from jmc@ | 2016-11-15 | 1 | -5/+5 | |
| | | |||||
| * | checkfs: ignore nonexistent files and extend comment. There's actually no need | 2016-11-15 | 1 | -6/+14 | |
| | | | | | | | | | | to double the size since files are replaced one by one. create_rollback: create release directory with explicit permissions. ls_installed: create release directory if it does not exist (temporary XXX) for early testers without a 6.1 hier(7); issue reported by Marc Benslahdine | ||||
| * | Double the required size to make sure we have enough space for install(1) safe | 2016-11-15 | 1 | -4/+4 | |
| | | | | | copy, the rollback tarball and in case we add new files. | ||||
| * | Check for available space before installing a patch. | 2016-11-14 | 1 | -5/+14 | |
| | | |||||
| * | uniq -> sort -u | 2016-11-14 | 1 | -2/+4 | |
| | | |||||
| * | Improve the cleanup error handling to make sure the exit code is | 2016-11-12 | 1 | -3/+3 | |
| | | | | | | | really preserved. Noticed by, discussed with, and fix approved tb@ | ||||
| * | Extend documentation a bit. It'll probably need some adjustments soon. | 2016-11-10 | 1 | -3/+21 | |
| | | |||||
| * | Simplify checkfs() and fix read-only/remote fs detection. | 2016-11-10 | 1 | -6/+6 | |
| | | |||||
| * | Extend mtree(8) comment. | 2016-11-10 | 1 | -2/+3 | |
| | | |||||
| * | Remove redundant check. | 2016-11-10 | 1 | -2/+2 | |
| | | |||||
| * | Create the bsd rollback kernel in create_rollback() (it is contained in | 2016-11-10 | 1 | -5/+5 | |
| | | | | | | | the rollback tarball anyway but that's impractical if the new bsd does not boot ;-)). While here, make sure /bsd actually exists before saving it. | ||||
| * | syspatch-60-001_foobar -> syspatch60-001_foobar to match base system sets name. | 2016-11-08 | 1 | -12/+23 | |
| | | | | | | Should be transparent to the early testers as long as you have the most recent syspatch.sh checkout from cvs(1). | ||||
| * | Simplify. | 2016-11-08 | 1 | -3/+3 | |
| | | |||||
| * | Few fixes and consistency. | 2016-11-08 | 1 | -16/+13 | |
| | | |||||
| * | Rework the cleanup trap handling using the EXIT trap; | 2016-11-06 | 1 | -7/+7 | |
| | | | | | | | | | | | | | trap 'cleanup; goes; here' EXIT trap exit HUP INT TERM ERR FOO BAR BAZ This makes sure the cleanup is always done (unless we exec), and preserves the exit code, such as SIGINT => 130. Also trap less signals. Special signals are special. tested and OK ajacoutot@ | ||||
| * | Be verbose when PATCH_PATH is not set (that is temporary until we agree on | 2016-11-04 | 1 | -4/+3 | |
| | | | | | a way to point to a syspatch mirror). | ||||
| * | One more XXX. | 2016-11-04 | 1 | -1/+2 | |
| | | |||||
| * | Zap extra space. | 2016-11-04 | 1 | -2/+2 | |
| | | |||||
| * | Make sure our filesystems are local and not read-only. | 2016-11-04 | 1 | -4/+18 | |
| | | |||||
| * | Use 'rm -f' to remove the rollback tarball if we have an errir; it may | 2016-11-04 | 1 | -2/+4 | |
| | | | | | be because we have a read-only /var. | ||||
| * | Missing local. | 2016-11-03 | 1 | -2/+2 | |
| | | |||||
| * | rollback -> revert where it makes sense. | 2016-11-03 | 2 | -7/+7 | |
| | | |||||
| * | XXX match with installed sets (comp, x...)? | 2016-11-03 | 1 | -1/+2 | |
| | | |||||
| * | Hardlinks are properly handled; for the rest, we'll see if we need to care | 2016-11-03 | 1 | -3/+2 | |
| | | | | | or not (XXX). | ||||
| * | Make sure PATCH_PATH is an URL that ftp(1) can cope with. | 2016-11-03 | 1 | -5/+2 | |
| | | |||||
| * | Merge ls_avail() into ls_missing(), it's only used once. | 2016-11-03 | 1 | -12/+8 | |
| | | | | | While here, cope with a missing index.txt or other ftp(1) error. | ||||
| * | Use hw.ncpufound. | 2016-11-03 | 1 | -3/+2 | |
| | | |||||
| * | Simplify for loops; prompted by a comment from rpe@ | 2016-11-03 | 1 | -10/+7 | |
| | | |||||
| * | Be verbose when reverting a patch. | 2016-11-02 | 1 | -1/+2 | |
| | | | | | committing now to please espie@ | ||||
| * | Simplify. | 2016-11-01 | 1 | -8/+4 | |
| | | |||||
| * | Tap SIGINT while install(1)ing so that we can properly rollback and not | 2016-11-01 | 1 | -31/+38 | |
| | | | | | be left in an inconsistent state. | ||||
| * | Add an XXX. | 2016-11-01 | 1 | -1/+2 | |
| | | |||||
| * | Only run sp_cleanup() when applying or reverting a patch (needs root). | 2016-11-01 | 1 | -6/+8 | |
| | | |||||
| * | Also remove non matching release rollback kernel. | 2016-11-01 | 1 | -3/+9 | |
| | | | | | Temporary unhook the cleanup function during tests. | ||||
| * | Add a cleanup function to remove non matching release content from | 2016-11-01 | 1 | -3/+19 | |
| | | | | | | | | /var/syspatch and the rollback kernel if all kernel syspatches have been reverted. While here, make sure _RELINT and _REL are declared properly. | ||||
| * | Simplify fetch_and_verify(), no need for a loop here. | 2016-11-01 | 1 | -11/+11 | |
| | | |||||
| * | Add a few error messages so we know where we fail. | 2016-11-01 | 1 | -10/+15 | |
| | | | | | | | | | Regular operation is mostly quiet, i.e: Applying syspatch-60-001_cp.tgz 100% |***********************| 65247 00:03 Move trap after we create the temporary directory so that we can remove it on failure and fix a typo in readonly vars. | ||||
| * | install_patch -> apply_patch to remove confusion with install_kernel and | 2016-11-01 | 1 | -26/+26 | |
| | | | | | install_file. | ||||
| * | We don't want to run on -stable (i.e. locally built release) but only on | 2016-11-01 | 1 | -5/+7 | |
| | | | | | | official release. Remove the half cooked rollback patch if we run into an error. | ||||
| * | First compute the variables, then set them readonly. So that we can catch | 2016-09-11 | 1 | -7/+8 | |
| | | | | | errors (e.g. mktemp(1) failing). | ||||
| * | Indent cleanup. | 2016-09-11 | 1 | -23/+22 | |
| | | | | | Fix apply_patches return code while here. | ||||
