[oe-commits] [openembedded-core] 49/122: wic: mountpoint is an optional argument

git at git.openembedded.org git at git.openembedded.org
Tue Jul 19 14:06:29 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 11799f6cf735d2dff672027a2661a3ab73481312
Author: Maciej Borzecki <maciej.borzecki at rndity.com>
AuthorDate: Tue Jul 12 13:37:25 2016 +0200

    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 at rndity.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 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 6887a7d..0894e2b 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)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list