pmbootstrap qemu: add --second-storage (MR 2008)

Create a second storage to test installing from SD card to eMMC with the
on-device installer.
This commit is contained in:
Oliver Smith 2020-12-14 18:48:09 +01:00 committed by Martijn Braam
parent 61f5c20ebb
commit 7d1c8d29df
No known key found for this signature in database
GPG key ID: C4280ACB000B060F
2 changed files with 27 additions and 2 deletions

View file

@ -276,6 +276,11 @@ def arguments_qemu(subparser):
ret.add_argument("--cmdline", help="override kernel commandline")
ret.add_argument("--image-size", default="4G",
help="set rootfs size, e.g. 2048M or 2G (default: 4G)")
ret.add_argument("--second-storage", metavar="IMAGE_SIZE",
help="add a second storage with the given size (default:"
" 4G), gets created if it does not exist. Use to"
" test install from SD to eMMC",
nargs="?", default=None, const="4G")
ret.add_argument("-m", "--memory", type=int, default=1024,
help="guest RAM (default: 1024)")
ret.add_argument("-p", "--port", type=int, default=2222,