1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-13 03:19:47 +03:00

Add "pmbootstrap repo_bootstrap" (MR 2273)

Related: https://postmarketos.org/pmaports.cfg bootstrap_1 etc.
This commit is contained in:
Oliver Smith 2024-02-23 01:20:32 +01:00
parent dce459984e
commit fafd4e7304
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
5 changed files with 194 additions and 4 deletions

View file

@ -517,6 +517,17 @@ def arguments_kconfig(subparser):
add_kernel_arg(migrate)
def arguments_repo_bootstrap(subparser):
arch_native = pmb.config.arch_native
arch_choices = set(pmb.config.build_device_architectures + [arch_native])
ret = subparser.add_parser("repo_bootstrap")
ret.add_argument("repository",
help="which repository to bootstrap (e.g. systemd)")
ret.add_argument("--arch", choices=arch_choices, dest="arch")
return ret
def arguments_repo_missing(subparser):
ret = subparser.add_parser("repo_missing")
package = ret.add_argument("package", nargs="?", help="only look at a"
@ -697,6 +708,7 @@ def arguments():
sub.add_parser("work_migrate", help="run this before using pmbootstrap"
" non-interactively to migrate the"
" work folder version on demand")
arguments_repo_bootstrap(sub)
arguments_repo_missing(sub)
arguments_kconfig(sub)
arguments_export(sub)