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:
parent
b8d5b9e4e5
commit
97eb39f34b
|
@ -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.")
|
||||
|
|
|
@ -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)")
|
||||
|
|
Loading…
Reference in New Issue