Optional --rsync parameter for pmbootstrap install only copies the diff (#1151)

Should reduce wear of sd card. Example usage:
pmbootstrap install --sdcard=/dev/mmcblk0 --no-fde --rsync
More rsync output with pmbootstrap -v.
This commit is contained in:
Pavel Machek 2018-01-29 00:25:21 +01:00 committed by Oliver Smith
parent cd7280e1ee
commit bdeec7a255
6 changed files with 36 additions and 12 deletions

View file

@ -194,6 +194,12 @@ def initfs(args):
def install(args):
if args.rsync and args.full_disk_encryption:
raise ValueError("Installation using rsync is not compatible with full"
" disk encryption.")
if args.rsync and not args.sdcard:
raise ValueError("Installation using rsync only works on sdcard.")
pmb.install.install(args)