]> code.ossystems Code Review - openembedded-core.git/commitdiff
wic: ksparser: set default disk to 'sda'
authorEd Bartosh <ed.bartosh@linux.intel.com>
Thu, 9 Feb 2017 14:37:57 +0000 (16:37 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 16 Feb 2017 04:06:34 +0000 (20:06 -0800)
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>
scripts/lib/wic/ksparser.py

index f0aa5d03899147a188264137000104288cee2df5..968b8e131296215b52588fa9c3a0575dd618ef3e 100644 (file)
@@ -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')