make boot partition size user-overridable (MR 1931)

Ask for the boot partition size during "pmbootstrap init" in the
additional options with a default of 128 MB, and allow to override it
with -B.
This commit is contained in:
Anjandev Momi 2020-04-28 00:04:31 -07:00 committed by Oliver Smith
parent d623913491
commit 37b4af19fc
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
5 changed files with 21 additions and 7 deletions

View file

@ -260,9 +260,10 @@ def test_questions_additional_options(args, monkeypatch):
assert cfg == {"pmbootstrap": {}}
# Answer everything
fake_answers(monkeypatch, ["y", "5", "2G", "n"])
fake_answers(monkeypatch, ["y", "64", "5", "2G", "n"])
func(args, cfg)
assert cfg == {"pmbootstrap": {"jobs": "5",
assert cfg == {"pmbootstrap": {"boot_size": "64",
"jobs": "5",
"ccache_size": "2G"}}