Differences

This shows you the differences between two versions of the page.

Link to this comparison view

webupdate [2011/08/30 15:34]
127.0.0.1 external edit
webupdate [2012/03/14 14:03] (current)
femto process removed
Line 20: Line 20:
 ====== process ====== ====== process ======
  
-process (started in //systemA//) : +the process is different then in the [[recovery]]
-  - server URL sent over mq, if changed +the flaw is not applyable using this method.
-  - software version sent over mq +
-  - remove files (**/tmp/*_core_* **,**/tmp/*.log**,**/tmp/dps_debug**,**/tmp/tr069_core_* **) +
-  - write **/opt/ubiquisys/db-primary/dc_save.ini** (mainly server address and update state). it will be updated throughout the process +
-  - get **SCF.xml** and write it in **/opt/ubiquisys/db-secondary/SCF.xml** +
-  - get **SCF.sig** and write it in **/tmp/SCF.sig** +
-  - verify **SCF.xml** signature using sigcheck. Injecting pubkey in the signature will not work because sigcheck is called by execve (using the right arguments). sigcheck will return FAILED and the dc process will crash because it will try to unlink/remove pubkey file instead of **/tmp/SCF.sig** (the filename is too long) +
-  - remove previous images (**tmp/*kernel* **,**/tmp/*rootfs* **,**/tmp/*ubiqfs* **) +
-  - exit if software version is not higher +
-  - handle rootfs: +
-    - if SCF.xml rootfs version newer then install : +
-      - get version of both rootfs (**.version**) +
-      - download **rootfs.bin** (folder name is the software version of SCF.xml) to **/tmp/rootfs.bin** +
-      - verify signature (using **SCF.xml**). retry download if check failed +
-      - unmount **/mnt/secondary_root/** +
-      - copy **/tmp/rootfs.bin** to **/dev/mtd9** +
-      - mount **/mnt/secondary_root/** +
-    - else : +
-      - get version of (secondary) rootfs (**/mnt/secondary_root/.version**) +
-      - verify **/dev/mtd9** (//rootfsB//) with signature from ubootenv +
-  - handle standard-kernel : +
-    - if **SCF.xml** standard-kernel version newer then install : +
-      - did not try, but should be the same then the others +
-    - else : +
-      - get version of (secondary) //standard-kernelB// (read **/dev/mtd8**) +
-      - verify **/dev/mtd8** (//standard-kernelB//) with signature from ubootenv +
-  - handle ubiqfs : +
-    - if **SCF.xml** //ubiqfs// version newer then install : +
-      - get version of both ubiqfs (**.version**) +
-      - download **ubiqfs.bin** (folder is software version of **SCF.xml**) to **/tmp/ubiqfs.bin** +
-      - verify signature (using **SCF.xml**). retry download if check failed +
-      - unmount **/opt/ubiquisys/secondary/** +
-      - copy **/tmp/rootfs.bin** to **/dev/mtd10** +
-      - mount **/opt/ubiquisys/secondary/** +
-    - else : +
-      - get version of (secondary) ubiqfs (**/opt/ubiquisys/secondary/.version**) +
-      - verify **/dev/mtd10** (//ubiqfsB//) with signature from //ubootenv// +
-  - backup database +
-  - write //ubootenv0// (**/dev/mtd0**), with new signatures +
-  - overwrite previous DTD (**/opt/ubiquisys/db-secondary/*.dtd**) with new (**/opt/ubiquisys/db-primary/*.dtd**) +
-  - reboot (//systemB// is started) +
- +
-database backup details: +
-  /opt/ubiquisys/primary/bin/sc_db_edit --in-db /opt/ubiquisys/primary/etc/ubiquisys-factory.xml --in-db /opt/ubiquisys/db-primary/ubiquisys-1.db1 --out-patch /tmp/delta.txt +
-  export LD_LIBRARY_PATH=/mnt/secondary_root/lib:/mnt/secondary_root/usr/lib:/opt/ubiquisys/secondary/lib && /opt/ubiquisys/secondary/bin/dbm /opt/ubiquisys/secondary/etc/schema.txt /tmp/delta.txt /tmp/db_new_patch.txt (it uses ./../db-primary/local_trace_config.txt) +
-  export LD_LIBRARY_PATH=/mnt/secondary_root/lib:/mnt/secondary_root/usr/lib:/opt/ubiquisys/secondary/lib && /opt/ubiquisys/secondary/bin/sc_db_edit --in-db /opt/ubiquisys/secondary/etc/ubiquisys-factory.xml --in-patch /tmp/db_new_patch.txt --out-db /opt/ubiquisys/db-secondary/ubiquisys-1.db1 > /tmp/migrate.txt 2>&1+
  
 ====== options ====== ====== options ======
webupdate.txt · Last modified: 2012/03/14 14:03 by femto
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki