summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/lib/wic/ksparser.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/lib/wic/ksparser.py b/scripts/lib/wic/ksparser.py
index e366f61e0f..0191a8474e 100644
--- a/scripts/lib/wic/ksparser.py
+++ b/scripts/lib/wic/ksparser.py
@@ -84,6 +84,7 @@ class KickStart(object):
84 self.partitions = [] 84 self.partitions = []
85 self.bootloader = None 85 self.bootloader = None
86 self.lineno = 0 86 self.lineno = 0
87 self.partnum = 0
87 88
88 parser = KickStartParser() 89 parser = KickStartParser()
89 subparsers = parser.add_subparsers() 90 subparsers = parser.add_subparsers()
@@ -130,7 +131,8 @@ class KickStart(object):
130 raise KickStartError('%s:%d: %s' % \ 131 raise KickStartError('%s:%d: %s' % \
131 (confpath, lineno, err)) 132 (confpath, lineno, err))
132 if line.startswith('part'): 133 if line.startswith('part'):
133 self.partitions.append(Partition(parsed, lineno)) 134 self.partnum += 1
135 self.partitions.append(Partition(parsed, self.partnum))
134 else: 136 else:
135 if not self.bootloader: 137 if not self.bootloader:
136 self.bootloader = parsed 138 self.bootloader = parsed