flasher: remove long deprecated flash_system alias

A long long time ago we renamed flash_system to flash_rootfs, and now
it's time to finally remove this alias since nobody should be using it
anymore.

Reviewed-by: Oliver Smith <ollieparanoid@postmarketos.org>
Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230605220329.14328-4-luca@z3ntu.xyz%3E
This commit is contained in:
Luca Weiss 2023-06-06 00:03:29 +02:00 committed by Oliver Smith
parent b8d5b9e4e5
commit 97eb39f34b
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
2 changed files with 1 additions and 5 deletions

View File

@ -148,10 +148,6 @@ def frontend(args):
action = args.action_flasher
method = args.flash_method or args.deviceinfo["flash_method"]
# Legacy alias
if action == "flash_system":
action = "flash_rootfs"
if method == "none" and action in ["boot", "flash_kernel", "flash_rootfs",
"flash_lk2nd"]:
logging.info("This device doesn't support any flash method.")

View File

@ -250,7 +250,7 @@ def arguments_flasher(subparser):
" default boot image partition ")
# Flash rootfs
flash_rootfs = sub.add_parser("flash_rootfs", aliases=["flash_system"],
flash_rootfs = sub.add_parser("flash_rootfs",
help="flash the rootfs to a partition on the"
" device (partition layout does not get"
" changed)")