From 77e6c23fbac4bbcad19e7c0690485f073c7908dc Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 1 Jan 2019 11:00:05 +0800 Subject: Update README --- README | 35 ++++++++--------------------------- 1 file changed, 8 insertions(+), 27 deletions(-) diff --git a/README b/README index f102f5d..dcad080 100644 --- a/README +++ b/README @@ -28,38 +28,19 @@ This tool refers to the installation procedures and the official source upgrade processes to implement the update task, which mainly includes the following steps: -1. check local and remote available versions; -2. download the latest release/master system image (.img.bz2); -3. decompress and mount the image; -4. backup the current kernel and world (including /etc); -5. install the kernel and world using cpdup (similar to the installer); -6. identify the new/changed /etc files, rename the conflicting ones with - suffix ".__new__" and then copy over; -7. get obsolete files from Makefile_upgrade.inc and remove them; -8. umount, remove image file, show the "*.__new__" files need manual - merge. +1. mount the system image file (*.img); +2. backup the current kernel and world (including "/etc"); +3. install the kernel and world using cpdup (similar to the installer); +4. identify the new/changed "/etc" files, rename the conflicting ones + with suffix ".__new__" and then copy over; +5. get obsolete files from "Makefile_upgrade.inc" and remove them; +6. umount, show the "*.__new__" files need manual merge. Usage ----- dfly# git clone https://github.com/liweitianux/dfly-update dfly# cd dfly-update - -* One-step update: - dfly# ./dfly-update fly - -* Step-by-step update: - 1. check local and remote status: - dfly# ./dfly-update status - 2. use the above printed remote filename and md5 to download it: - dfly# ./dfly-update - 3. mount the downloaded image: - dfly# ./dfly-update /var/tmp/dfly-update/ - 4. backup the current kernel and world (including /etc): - dfly# ./dfly-update backup - 5. install the new kernel, world, and /etc files: - dfly# ./dfly-update upgrade - 6. remove obsolete files, umount, and remove the downloaded image: - dfly# ./dfly-update cleanup +dfly# ./dfly-update fly NOTE: After this, you still need to merge the listed config files with suffix -- cgit v1.2.2