Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Tweak comment. | 2016-12-06 | 1 | -2/+3 | ||
| | ||||||
* | Explicit error when running on unsupported release. | 2016-12-05 | 1 | -2/+2 | ||
| | ||||||
* | If we end up creating a rollback tarball from an empty list of files, it means | 2016-12-05 | 1 | -17/+19 | ||
| | | | | | | | | | we are missing a base set. In this case, error out right away or we may end up having the patch supposedly installed but without its corresponding rollback tarball. For now we only support *full* installations. installed patches mismatch reported by Marc Benslahdine | |||||
* | Remove the ugly temporary quirks. | 2016-12-05 | 1 | -37/+1 | ||
| | ||||||
* | Simplify. | 2016-12-02 | 1 | -3/+3 | ||
| | ||||||
* | Few consistency fixes (no intended change in behaviour). | 2016-12-02 | 1 | -10/+9 | ||
| | | | | Fix logic in the error path of rollback_patch(). | |||||
* | Fix kernel matching installation: | 2016-12-01 | 1 | -7/+5 | ||
| | | | | | | | bsd -> /bsd (sp) | /bsd.sp (mp) bsd.mp -> /bsd (mp) | /bsd.mp (sp) issue reported by Ossi Salmi, thanks! | |||||
* | Simplify: | 2016-11-30 | 1 | -27/+21 | ||
| | | | | | | - consistency in integer checks - drop apply_patches(), better call ther actual apply_patch() function from within the script itself | |||||
* | During early testing, hardcode the syspatch repo to 'syspatch.openbsd.org' | 2016-11-30 | 1 | -10/+7 | ||
| | | | | | | which points to ftp.fr. This will change once 6.1 is out. discussed with deraadt@ | |||||
* | Change the hierarchy under /var/syspatch/ so that the output of installed or | 2016-11-30 | 2 | -84/+93 | ||
| | | | | | | | | | | | | | missing patches matches the official names. e.g. $ doas syspatch -c 015_libssl Add a bit more output on what we are doing. Tighten a few checks and rename some vars. People playing with syspatch on 6.0 should update syspatch.sh asap from current as I will soon remove the temporary quirks glue. | |||||
* | Document the fact that *for now* syspatch only works on official releases and | 2016-11-29 | 1 | -2/+6 | ||
| | | | | will always sync and apply all patches regardless of the installed sets. | |||||
* | Remove the backup kernel in rollback_patch() instead of the cleanup | 2016-11-27 | 1 | -8/+7 | ||
| | | | | | function. Consistent use of install(1). | |||||
* | Explicitely set umask. | 2016-11-27 | 1 | -1/+2 | ||
| | ||||||
* | Check args. | 2016-11-25 | 1 | -3/+3 | ||
| | ||||||
* | 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 | ||
| |