[gnome-continuous-yocto/gnomeostree-3.28-rocko: 1392/8267] wic: mountpoint is an optional argument



commit 45743114c8a541cf64745cdd4f9a05169a468a4c
Author: Maciej Borzecki <maciej borzecki rndity com>
Date:   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).
    
    (From OE-Core rev: 5e063a4c6bb0e0623a4d25bb2bf6eecd9ad6b9f1)
    
    Signed-off-by: Maciej Borzecki <maciej borzecki rndity com>
    Signed-off-by: Ross Burton <ross burton intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 scripts/lib/wic/ksparser.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]