summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-02-09 16:37:57 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-02-15 20:06:34 -0800
commitcaa243a86ba50c676f8eb0a71440885a49f10cc4 (patch)
tree1757b55d2d8059960b72eaef5684d49c9fe378fa
parente3b73b1c07620cde423cc7db7e2f7d8b1ad25e25 (diff)
downloadopenembedded-core-contrib-caa243a86ba50c676f8eb0a71440885a49f10cc4.tar.gz
openembedded-core-contrib-caa243a86ba50c676f8eb0a71440885a49f10cc4.tar.bz2
openembedded-core-contrib-caa243a86ba50c676f8eb0a71440885a49f10cc4.zip
wic: ksparser: set default disk to 'sda'
Set default value of --ondisk to 'sda' to ensure we always have disk name for the partition. This is a first step of replacing --ondisk with disk <name> attribute of .wks. This is better as all partitions share the same disk. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
-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 f0aa5d0389..968b8e1312 100644
--- a/scripts/lib/wic/ksparser.py
+++ b/scripts/lib/wic/ksparser.py
@@ -136,7 +136,7 @@ class KickStart():
part.add_argument('--fstype')
part.add_argument('--label')
part.add_argument('--no-table', action='store_true')
- part.add_argument('--ondisk', '--ondrive', dest='disk')
+ part.add_argument('--ondisk', '--ondrive', dest='disk', default='sda')
part.add_argument("--overhead-factor", type=overheadtype)
part.add_argument('--part-type')
part.add_argument('--rootfs-dir')