Skip to content
Snippets Groups Projects
  • Jo-Philipp Wich's avatar
    4aeeead3
    x86: preserve partition table on sysupgrade · 4aeeead3
    Jo-Philipp Wich authored
    
    With this patch sysupgrade will write directly to the partitions
    instead of to the main disk.  The UUID is copied from the image
    to the MBR as well.  This prevents the mbr from being completely
    overwritten and losing the partition table.  The -p option has
    been added to maintain the original behavior and overwite the
    entire disk with the new image.  Tests have been added to ensure
    that the image partitions match up with the active partitions.
    
    Signed-off-by: default avatarRob Mosher <nyt-openwrt@countercultured.net>
    
    SVN-Revision: 48682
    4aeeead3
    History
    x86: preserve partition table on sysupgrade
    Jo-Philipp Wich authored
    
    With this patch sysupgrade will write directly to the partitions
    instead of to the main disk.  The UUID is copied from the image
    to the MBR as well.  This prevents the mbr from being completely
    overwritten and losing the partition table.  The -p option has
    been added to maintain the original behavior and overwite the
    entire disk with the new image.  Tests have been added to ensure
    that the image partitions match up with the active partitions.
    
    Signed-off-by: default avatarRob Mosher <nyt-openwrt@countercultured.net>
    
    SVN-Revision: 48682