From 5e063a4c6bb0e0623a4d25bb2bf6eecd9ad6b9f1 Mon Sep 17 00:00:00 2001 From: Maciej Borzecki Date: Tue, 12 Jul 2016 13:37:25 +0200 Subject: wic: mountpoint is an optional argument According to wic documentation partition mount point is an optional argument. Skipping mount point also makes sense in certain configurations when one needs to specify a partition that is not mounted by the running system, such as a recovery or a mirror partition (in dual rootfs setups). Signed-off-by: Maciej Borzecki Signed-off-by: Ross Burton --- scripts/lib/wic/ksparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/wic/ksparser.py b/scripts/lib/wic/ksparser.py index 6887a7d024..0894e2b199 100644 --- a/scripts/lib/wic/ksparser.py +++ b/scripts/lib/wic/ksparser.py @@ -124,7 +124,7 @@ class KickStart(): subparsers = parser.add_subparsers() part = subparsers.add_parser('part') - part.add_argument('mountpoint') + part.add_argument('mountpoint', nargs='?') part.add_argument('--active', action='store_true') part.add_argument('--align', type=int) part.add_argument("--extra-space", type=sizetype, default=10*1024) -- cgit v1.2.3