summaryrefslogtreecommitdiff
path: root/scripts/lib
diff options
context:
space:
mode:
authorMaciej Borzecki <maciej.borzecki@rndity.com>2016-07-12 13:37:25 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-20 10:24:51 +0100
commit5e063a4c6bb0e0623a4d25bb2bf6eecd9ad6b9f1 (patch)
tree145c21871ec870509a6425b14d32f31d03e2a640 /scripts/lib
parent95794e261628f83ddab0aa7b8bafb6409cc9deb5 (diff)
downloadopenembedded-core-5e063a4c6bb0e0623a4d25bb2bf6eecd9ad6b9f1.tar.gz
openembedded-core-5e063a4c6bb0e0623a4d25bb2bf6eecd9ad6b9f1.tar.bz2
openembedded-core-5e063a4c6bb0e0623a4d25bb2bf6eecd9ad6b9f1.zip
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 <maciej.borzecki@rndity.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/wic/ksparser.py2
1 files changed, 1 insertions, 1 deletions
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)