forked from Mirror/pmbootstrap
install: rename --sdcard arg to --disk
Rename the argument, because any block device can be passed to the argument. Use "disk", because the other short word "device" usually means the target device/phone to install. Keep --sdcard as alias for compatibility with existing scripts and muscle memory. Reviewed-by: Clayton Craft <clayton@craftyguy.net> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20231119182302.2415-1-ollieparanoid@postmarketos.org%3E
This commit is contained in:
parent
942ee20789
commit
ef047137d0
8 changed files with 58 additions and 56 deletions
|
@ -96,9 +96,11 @@ def arguments_install(subparser):
|
|||
default=None)
|
||||
group.add_argument("--split", help="create separate boot and root image"
|
||||
" files", action="store_true")
|
||||
group.add_argument("--sdcard", help="do not create an image file, instead"
|
||||
" write to the given SD card device (e.g."
|
||||
" '/dev/mmcblk0')", metavar="BLOCKDEV")
|
||||
group.add_argument("--disk", "--sdcard",
|
||||
help="do not create an image file, instead"
|
||||
" write to the given block device (SD card, USB"
|
||||
" stick, etc.), for example: '/dev/mmcblk0'",
|
||||
metavar="BLOCKDEV")
|
||||
group.add_argument("--android-recovery-zip",
|
||||
help="generate TWRP flashable zip (recommended read:"
|
||||
" https://postmarketos.org/recoveryzip)",
|
||||
|
@ -106,9 +108,9 @@ def arguments_install(subparser):
|
|||
group.add_argument("--no-image", help="do not generate an image",
|
||||
action="store_true", dest="no_image")
|
||||
|
||||
# Image type "--sdcard" related
|
||||
group = ret.add_argument_group("optional image type 'sdcard' arguments")
|
||||
group.add_argument("--rsync", help="update the SD card using rsync",
|
||||
# Image type "--disk" related
|
||||
group = ret.add_argument_group("optional image type 'disk' arguments")
|
||||
group.add_argument("--rsync", help="update the disk using rsync",
|
||||
action="store_true")
|
||||
|
||||
# Image type "--android-recovery-zip" related
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue