aboutsummaryrefslogtreecommitdiffstats
path: root/dfly-update
Commit message (Collapse)AuthorAgeFilesLines
* Fix add_users() issue about '_gids' variableAaron LI2020-12-271-11/+15
| | | | | | A pipe creates a subshell, so updates to the '_gids' variable would just get lost after the while loop. Use IO redirection instead of pipe to fix this issue.
* Add option "-i" to mtree(8) to set schg flagsAaron LI2019-06-221-1/+1
|
* Better handle the argument of specifying the image fileAaron LI2019-01-161-7/+19
|
* Clean up the config file loading codeAaron LI2019-01-101-38/+34
| | | | Adjust the whitespace style in the meantime.
* Split out function get_mount_dev()Aaron LI2019-01-101-2/+9
|
* Bump to version 0.2.0v0.2.0Aaron LI2019-01-091-1/+1
|
* Mention "pkg update" before "pkg upgrade"Aaron LI2019-01-091-0/+1
|
* Check whether the mount point is already mountedAaron LI2019-01-091-2/+7
| | | | | If the target mount point is already mounted (e.g., legacy from previous incomplete dfly-update run), just exit with an error.
* Fold get_vn_devname() into umount_image()Aaron LI2019-01-091-11/+6
| | | | Improve the method to get the device name of the mounted image.
* Also use cpdup -X to ignore files when copying new /etcAaron LI2019-01-091-18/+21
| | | | | | | | Add the new function make_cpignore() to generate the ignore file for cpdup(1), considering the substitution from '/etc' to '/etc.hdd'. Explicitly remove possible existing 'etc.new' directory left by the previous run.
* Force to ignore '/etc' from $INSTALL_LISTAaron LI2019-01-091-19/+24
|
* Allow to start and stop at specified upgrade stepsAaron LI2019-01-091-30/+95
| | | | | | | Adding new options '-s' and '-S' to allow to start and stop at the specified steps, respecitively. Clean up the messages a bit.
* Rework the usage syntaxAaron LI2019-01-091-110/+62
| | | | Use options instead sub-commands, simplifying the usage.
* Clean up obvious arguments checksAaron LI2019-01-091-37/+4
|
* Add new users/groups according to {master.passwd,group}Aaron LI2019-01-091-0/+49
| | | | | | Add function add_users() to add new users and groups according to /etc.hdd/{master.passwd,group} files, and call this function after install_system().
* Merge "version" sub-command into "help"Aaron LI2019-01-081-21/+11
| | | | Improve the help text a bit.
* Rebuild mail alias dbAaron LI2019-01-081-0/+2
|
* Ignore several more filesAaron LI2019-01-081-0/+3
| | | | Credit: https://github.com/openbsd/src/blob/master/usr.sbin/sysmerge/sysmerge.sh
* Fix vnconfig(8) use errorAaron LI2019-01-081-2/+2
| | | | | Fix the vnconfig(8) use error introduced in 10a4caf8a5bf6de99248b133a9cb90e791067541.
* Fix cpdup -X usage (2)Aaron LI2019-01-081-4/+6
| | | | | | | | Note that 'cpdup -X' doesn't normalize multiple '/' to be one, so for example, '/mnt/tmp/boot/loader.conf' is different to '/mnt/tmp//boot/loader.conf'! Also drop the unnecessary '-u' option.
* Fix cpdup -X usageAaron LI2019-01-071-1/+1
| | | | Full absolute paths must be used in the cpignore file.
* Use cpdup -X to ignore the files to avoid overwritingAaron LI2019-01-061-20/+11
| | | | | Use cpdup -X to not copy the files should be ignored to avoid overwriting. Therefore, the copy-backup-then-rename hack is not needed.
* Introduce ${CPDUP} to specify the path to cpdup(1)Aaron LI2019-01-051-3/+5
|
* Update copyright year :)Aaron LI2019-01-011-1/+1
|
* Several minor changesAaron LI2019-01-011-5/+4
|
* Add INSTALL_LIST for the list of files/dirs to be installedAaron LI2019-01-011-20/+24
|
* Simplify cmd_mount() and cmd_cleanup()Aaron LI2019-01-011-23/+1
|
* Strip the "status" and "download" sub-commandsAaron LI2019-01-011-321/+5
| | | | Make this tool simple!
* Bump version to 0.1.5v0.1.5Aaron LI2018-12-281-1/+1
|
* Simplify the vnconfig(8) usageAaron LI2018-12-281-2/+2
|
* Various small cleanupsAaron LI2018-12-261-73/+100
|
* Rebuild databases after upgradeAaron LI2018-12-201-0/+10
|
* Bump to version 0.1.4v0.1.4Aaron LI2018-12-201-1/+1
|
* Ignore /etc/login.conf.db and update config fileAaron LI2018-12-201-0/+1
|
* dfly-update: Improve the mtree usagesAaron LI2018-12-201-9/+15
|
* dfly-update: Install /rescue directoryAaron LI2018-12-201-1/+3
|
* Also remove the generated catman pages when the man page obsoleteAaron LI2018-06-031-1/+9
|
* Properly capture the error code from get_latest_image()Aaron LI2018-06-031-2/+3
| | | | | | Before this commit, get_latest_image() may fail, e.g., due to fetch errors, but the "eval" statement makes the error code from get_latest_image() function ignored.
* Try use the new Makefile_upgrade.inc to cleanup obsolete filesAaron LI2018-04-161-5/+9
| | | | Also bump version to 0.1.3
* Improve the post-update messagesAaron LI2018-03-211-4/+7
|
* Base system doesn't need to handle /usr/localAaron LI2018-03-131-2/+0
| | | | The BSD.local.dist will also be removed from DFly base soon.
* upgrade_install(): suppress showing of unmodified filesAaron LI2018-03-121-12/+8
|
* Bump version to 0.1.2Aaron LI2018-03-111-1/+1
|
* Document "set -e" and fix cmd_status() invocation in cmd_fly()Aaron LI2018-03-111-1/+4
|
* cmd_status: return the update status instead of always 0Aaron LI2018-03-111-0/+2
|
* Minor improvementsAaron LI2018-03-111-4/+8
|
* Add "|| true" to make debug() work with DEBUG disabledAaron LI2018-03-111-1/+1
| | | | | | | For reasons unknown, with DEBUG disabled (i.e., DEBUG=""), the script will terminate after the debug() invocation! But bash can run this script well without this fix...
* upgrade_system(): find from new "etc" to identify [NEW]/[UPDATED] filesAaron LI2018-03-111-12/+15
| | | | version: 0.1.1
* dfly-update: version 0.1.0Aaron LI2018-03-111-1/+1
| | | | Tested by upgrading a DFly 5.0.0-release -> 5.0.2-release
* postupgrade(): sort found filesAaron LI2018-03-111-1/+1
|