From 97eb39f34b7e379ee4edb77391afecfd23093cee Mon Sep 17 00:00:00 2001 From: Luca Weiss Date: Tue, 6 Jun 2023 00:03:29 +0200 Subject: [PATCH] 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 Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230605220329.14328-4-luca@z3ntu.xyz%3E --- pmb/flasher/frontend.py | 4 ---- pmb/parse/arguments.py | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/pmb/flasher/frontend.py b/pmb/flasher/frontend.py index a47191e6..813c4bd4 100644 --- a/pmb/flasher/frontend.py +++ b/pmb/flasher/frontend.py @@ -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.") diff --git a/pmb/parse/arguments.py b/pmb/parse/arguments.py index b5c15bad..c584afb8 100644 --- a/pmb/parse/arguments.py +++ b/pmb/parse/arguments.py @@ -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)")