install: support password as cmdline arg (MR 2125)

So I can finally run `pmbootstrap install --password 147147` and go and
make a cup of tea.

Based on MR 1919.

Co-Authored-By: Oliver Smith <ollieparanoid@postmarketos.org>
This commit is contained in:
Caleb Connolly 2021-10-10 22:55:50 +01:00 committed by Oliver Smith
parent 498738abcc
commit 4c4bd77c87
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
2 changed files with 41 additions and 10 deletions

View file

@ -55,6 +55,10 @@ def arguments_install(subparser):
help="do not enable the SSH daemon by default")
ret.add_argument("--no-firewall", action="store_true",
help="do not enable the firewall by default")
ret.add_argument("--password", help="dummy password for automating the"
" installation - will be handled in PLAIN TEXT during"
" install and may be logged to the logfile, do not use an"
" important password!")
# Image type
group_desc = ret.add_argument_group(