summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLi Yi <yix.li@intel.com>2011-03-24 17:54:47 +0800
committerLi Yi <yix.li@intel.com>2011-03-24 17:54:47 +0800
commit98a6484a107f34a782e028668f8b5519de97233a (patch)
treea5bc4e48094250424aa9e72e67a3a1ab75a950f2 /tools
parente3559d3f1e10b646068b7a02945d6e2741ca4c93 (diff)
downloadkickstarter-98a6484a107f34a782e028668f8b5519de97233a.tar.gz
kickstarter-98a6484a107f34a782e028668f8b5519de97233a.tar.bz2
kickstarter-98a6484a107f34a782e028668f8b5519de97233a.zip
fix the kickstart.tmpl and kickstarter, import additional options.
now it supports kickstart magic; on top the line evaluated by mic2 Signed-off-by: Li Yi <yix.li@intel.com>
Diffstat (limited to 'tools')
-rwxr-xr-x[-rw-r--r--]tools/kickstarter4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/kickstarter b/tools/kickstarter
index 3fc6ab6..9b3cdbe 100644..100755
--- a/tools/kickstarter
+++ b/tools/kickstarter
@@ -54,7 +54,7 @@ class KSWriter():
full = full + plat[l]
if img.has_key(l) and img[l]:
full = full + img[l]
- lvald[l] = set(full)
+ lvald[l] = sorted(set(full), key=full.index)
#print full
conf.update(lvald)
#print conf
@@ -93,7 +93,7 @@ class KSWriter():
r = {}
r['Name'] = repo['Name']
r['Url'] = repo['Url'].replace("@ARCH@", meta['Architecture'])
- r['Url'] = repo['Url'].replace("@RELEASE@", meta['Baseline'])
+ r['Url'] = r['Url'].replace("@RELEASE@", meta['Baseline'])
new_repos.append(r)
else:
new_repos = repos