From 0c86df73e7998e13c6e1278be86f90b08bdd670b Mon Sep 17 00:00:00 2001 From: JF Ding Date: Wed, 30 May 2012 10:03:53 +0800 Subject: fixed the bug of getting path of configs --- kswriter/KSWriter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kswriter/KSWriter.py b/kswriter/KSWriter.py index d60e31d..2227813 100644 --- a/kswriter/KSWriter.py +++ b/kswriter/KSWriter.py @@ -19,7 +19,7 @@ def mkdir_p(path): class KSWriter(): def __init__(self, configs=None, repos=None, outdir=".", config=None, packages=False): self.dist = None - self.image_filename = configs + self.image_filename = os.path.abspath(os.path.expanduser(configs)) self.repo_filename = repos self.outdir = outdir self.packages = packages -- cgit v1.2.3 From 8cfd358a35d1e1a5e00f4970cf6a221ede115854 Mon Sep 17 00:00:00 2001 From: JF Ding Date: Wed, 30 May 2012 10:05:22 +0800 Subject: update sample configs under demo/ --- Makefile | 1 + demo/configurations.yaml | 28 +++------------------------- demo/netbook/meego-netbook.yaml | 17 +++++++++++++++++ 3 files changed, 21 insertions(+), 25 deletions(-) create mode 100644 demo/netbook/meego-netbook.yaml diff --git a/Makefile b/Makefile index 237e327..a4da77f 100644 --- a/Makefile +++ b/Makefile @@ -50,3 +50,4 @@ clean: rm -f $(addsuffix .bak,$(TEMPLATE_MODS)) rm -f *.pyc *.pyo rm -rf dist/ build/ kickstart/kickstart.py kickstart/__init__.py *~ */*~ + rm -rf *.egg-info/ diff --git a/demo/configurations.yaml b/demo/configurations.yaml index 71cee5d..aae0215 100644 --- a/demo/configurations.yaml +++ b/demo/configurations.yaml @@ -1,7 +1,9 @@ ExternalConfigs: - - ex + - netbook + Default: Active: True + Baseline: tizen-0.99 Language: en_US.UTF-8 Keyboard: us PackageArgs: @@ -116,7 +118,6 @@ NETBOOK: Configurations: - Name: MeeGo IVI Development Active: True - Baseline: "1.1.80" Platform: IVI Desktop: X-IVI FileName: ivi-ia32 @@ -133,7 +134,6 @@ Configurations: - mesa-libEGL - Name: MeeGo IVI Active: True - Baseline: "1.1.80" Platform: IVI Desktop: X-IVI FileName: ivi-ia32 @@ -147,27 +147,9 @@ Configurations: - ivi ExtraPackages: - mesa-libEGL - - Name: MeeGo Netbook/Nettop - PartSize: 3000 - Active: True - Baseline: "1.1.80" - Platform: NETBOOK - Desktop: meego - FileName: netbook-ia32 - Mic2Options: -f livecd - Groups: - - MeeGo Netbook Desktop - - Base Double Byte IME Support - - MeeGo Base Development - Repos: - - core - - netbook - ExtraPackages: - - chromium - Name: MeeGo Handset N900 Development Part: n900-devel Active: True - Baseline: "1.1.80" Platform: N900 FileName: handset-armv7l-n900-devel Mic2Options: -f raw --save-kernel --arch=armv7l @@ -187,7 +169,6 @@ Configurations: - u-boot - Name: MeeGo Handset N900 Active: True - Baseline: "1.1.80" Platform: N900 FileName: handset-armv7l-n900 Mic2Options: -f raw --save-kernel --arch=armv7l @@ -208,7 +189,6 @@ Configurations: - Name: MeeGo Handset MTF Development PartSize: 2200 Active: True - Baseline: "1.1.80" Platform: MFLD FileName: handset-ia32-mtf-devel Mic2Options: -f nand @@ -225,7 +205,6 @@ Configurations: - serial-mfld - Name: MeeGo Handset MTF Pinetrail Active: True - Baseline: "1.1.80" Platform: MFLD FileName: handset-ia32-pinetrail-mtf Mic2Options: -f livecd @@ -236,7 +215,6 @@ Configurations: - Name: MeeGo Handset MTF Schedule: "* * * * 3" Active: True - Baseline: "1.1.80" Platform: MFLD FileName: handset-ia32-mtf Mic2Options: -f nand diff --git a/demo/netbook/meego-netbook.yaml b/demo/netbook/meego-netbook.yaml new file mode 100644 index 0000000..2c1e16a --- /dev/null +++ b/demo/netbook/meego-netbook.yaml @@ -0,0 +1,17 @@ +Name: MeeGo Netbook/Nettop +PartSize: 2580 +Active: True +Baseline: "1.1.80" +Platform: NETBOOK +Desktop: meego +FileName: netbook-ia32 +Mic2Options: -f livecd +Groups: + - MeeGo Netbook Desktop + - Base Double Byte IME Support + - MeeGo Base Development +Repos: + - core + - netbook +ExtraPackages: + - chromium -- cgit v1.2.3 From bee3402b7fcdf43b90a1a269a7616a47a796672c Mon Sep 17 00:00:00 2001 From: Gui Chen Date: Thu, 31 May 2012 11:11:37 +0800 Subject: add '%attachment' section for mic container Signed-off-by: Gui Chen --- demo/configurations.yaml | 3 +++ kickstart/kickstart.tmpl | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/demo/configurations.yaml b/demo/configurations.yaml index aae0215..b7d91ed 100644 --- a/demo/configurations.yaml +++ b/demo/configurations.yaml @@ -230,3 +230,6 @@ Configurations: - serial-mfld PrePackages: - Answer2theUltimateQuestionOfEverything + Attachment: + - ifwi + - /boot/vmlinuz-* diff --git a/kickstart/kickstart.tmpl b/kickstart/kickstart.tmpl index 2bed6aa..2cfb83c 100644 --- a/kickstart/kickstart.tmpl +++ b/kickstart/kickstart.tmpl @@ -99,6 +99,14 @@ ${e} %end #end if +#if $metadata.has_key("Attachment") +%attachment +#for $e in $metadata.Attachment +${e} +#end for +%end +#end if + %post ${metadata.Post} %end -- cgit v1.2.3