Improve updating existing sd card installations with rsync
Created by: ollieparanoid
Current implementation
Initial support for updating an existing installation with rsync has been implemented in #1151. Example usage:
pmbootstrap install --sdcard=/dev/mmcblk0 --no-fde --rsync
Currently it only works in combination with --no-fde
(and of course --sdcard
).
Further improvements
-
Remove the --rsync
parameter: When doing the sdcard installation, detect existing postmarketOS installations (I think we have code to do that already, currently used to display a different warning) and always update the existing partition -
Reduce code paths: Always use the rsync
program to copy data to the destination partition (no matter if it is on the sd card, an image file, encrypted or not) -
Support full disk encryption -
Make sure we still ask for confirmation before modifying the sd card (that is currently disabled with --rsync
).