[elbe-devel] [PATCH 3/3] Add XInclude examples

Benedikt Spranger b.spranger at linutronix.de
Thu Mar 23 12:47:29 CET 2017


Add two sample E.L.B.E. receipes using XInclude:
- x86_32-pc-hdimg-with-include-development.xml
- x86_32-pc-hdimg-with-include-production.xml

XIncludes can be used for every node.

Signed-off-by: Benedikt Spranger <b.spranger at linutronix.de>
---
 examples/all.xml                                   | 388 +++++++++++++++++++++
 examples/includes/devel/finetuning.xml             |   5 +
 examples/includes/devel/hostname.xml               |   2 +
 examples/includes/devel/part.xml                   |  10 +
 examples/includes/devel/pkglist.xml                |  12 +
 examples/includes/prod/finetuning.xml              |   6 +
 examples/includes/prod/hostname.xml                |   2 +
 examples/includes/prod/part.xml                    |  10 +
 examples/includes/prod/pkglist.xml                 |  11 +
 examples/newXMLDocument.xml                        | 388 +++++++++++++++++++++
 examples/portexpander.xml                          |  78 +++++
 .../x86_32-pc-hdimg-with-include-development.xml   |  39 +++
 .../x86_32-pc-hdimg-with-include-production.xml    |  39 +++
 examples/x86_64-pc-hdimg-minimal.xml               |  84 +++++
 14 files changed, 1074 insertions(+)
 create mode 100644 examples/all.xml
 create mode 100644 examples/includes/devel/finetuning.xml
 create mode 100644 examples/includes/devel/hostname.xml
 create mode 100644 examples/includes/devel/part.xml
 create mode 100644 examples/includes/devel/pkglist.xml
 create mode 100644 examples/includes/prod/finetuning.xml
 create mode 100644 examples/includes/prod/hostname.xml
 create mode 100644 examples/includes/prod/part.xml
 create mode 100644 examples/includes/prod/pkglist.xml
 create mode 100644 examples/newXMLDocument.xml
 create mode 100644 examples/portexpander.xml
 create mode 100644 examples/x86_32-pc-hdimg-with-include-development.xml
 create mode 100644 examples/x86_32-pc-hdimg-with-include-production.xml
 create mode 100644 examples/x86_64-pc-hdimg-minimal.xml

diff --git a/examples/all.xml b/examples/all.xml
new file mode 100644
index 0000000..ca33505
--- /dev/null
+++ b/examples/all.xml
@@ -0,0 +1,388 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+To change this license header, choose License Headers in Project Properties.
+To change this template file, choose Tools | Templates
+and open the template in the editor.
+-->
+
+
+<ns1:RootFileSystem
+    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
+    xmlns:ns1='https://www.linutronix.de/projects/Elbe'
+    xsi:schemaLocation='https://www.linutronix.de/projects/Elbe file:/home/bene/work/elbe/elbe/elbepack/dbsfed.xsd'>
+    <initvm>
+        <buildtype></buildtype>
+        <mirror>
+            <primary_host></primary_host>
+            <primary_path></primary_path>
+            <primary_proto></primary_proto>
+            <primary_proxy></primary_proxy>
+            <cdrom></cdrom>
+            <url-list>
+                <url>
+                </url>
+                <url>
+                </url>
+                <url>
+                </url>
+            </url-list>
+        </mirror>
+        <noauth></noauth>
+        <preference pin=""></preference>
+        <suite></suite>
+        <pkg-list>
+            <pkg pin="" version="" auto="" md5=""></pkg>
+            <pkg pin="" version="" auto="" md5=""></pkg>
+            <pkg pin="" version="" auto="" md5=""></pkg>
+        </pkg-list>
+        <preseed>
+            <conf owner="" key="" type="" value=""></conf>
+            <conf owner="" key="" type="" value=""></conf>
+            <conf owner="" key="" type="" value=""></conf>
+        </preseed>
+        <size></size>
+        <img></img>
+        <portforwarding>
+            <forward>
+                <proto></proto>
+                <buildenv></buildenv>
+                <host></host>
+            </forward>
+            <forward>
+                <proto></proto>
+                <buildenv></buildenv>
+                <host></host>
+            </forward>
+            <forward>
+                <proto></proto>
+                <buildenv></buildenv>
+                <host></host>
+            </forward>
+        </portforwarding>
+    </initvm>
+    <project>
+        <name></name>
+        <version></version>
+        <description></description>
+        <buildtype></buildtype>
+        <mirror>
+            <primary_host></primary_host>
+            <primary_path></primary_path>
+            <primary_proto></primary_proto>
+            <primary_proxy></primary_proxy>
+            <cdrom></cdrom>
+            <url-list>
+            </url-list>
+        </mirror>
+        <noauth></noauth>
+        <preference pin=""></preference>
+        <raw-preference></raw-preference>
+        <raw-preference></raw-preference>
+        <raw-preference></raw-preference>
+        <suite></suite>
+        <buildimage>
+            <arch></arch>
+            <size></size>
+            <mem></mem>
+            <interpreter></interpreter>
+            <interpreterversion></interpreterversion>
+            <kinitrd></kinitrd>
+            <console></console>
+            <machine></machine>
+            <NIC>
+                <model></model>
+                <MAC></MAC>
+            </NIC>
+            <portforwarding>
+                <forward>
+                    <proto></proto>
+                    <buildenv></buildenv>
+                    <host></host>
+                </forward>
+            </portforwarding>
+            <pkgversionlist></pkgversionlist>
+            <pkg-list>
+            </pkg-list>
+        </buildimage>
+        <preseed>
+        </preseed>
+    </project>
+    <target>
+        <hostname></hostname>
+        <domain></domain>
+        <passwd></passwd>
+        <console></console>
+        <package>
+            <tar>
+                <name></name>
+                <options></options>
+            </tar>
+            <cpio>
+                <name></name>
+            </cpio>
+            <squashfs>
+                <name></name>
+            </squashfs>
+        </package>
+        <images>
+            <mtd>
+                <name></name>
+                <nr></nr>
+                <size></size>
+                <binary></binary>
+                <ubivg>
+                    <label></label>
+                    <miniosize></miniosize>
+                    <maxlogicaleraseblockcount></maxlogicaleraseblockcount>
+                    <logicaleraseblocksize></logicaleraseblocksize>
+                    <physicaleraseblocksize></physicaleraseblocksize>
+                    <subpagesize></subpagesize>
+                    <ubi>
+                        <type></type>
+                        <label></label>
+                        <id></id>
+                        <size></size>
+                        <binary></binary>
+                        <empty></empty>
+                    </ubi>
+                    <ubi>
+                        <type></type>
+                        <label></label>
+                        <id></id>
+                        <size></size>
+                        <binary></binary>
+                        <empty></empty>
+                    </ubi>
+                    <ubi>
+                        <type></type>
+                        <label></label>
+                        <id></id>
+                        <size></size>
+                        <binary></binary>
+                        <empty></empty>
+                    </ubi>
+                </ubivg>
+            </mtd>
+            <mtd>
+                <name></name>
+                <nr></nr>
+                <size></size>
+                <binary></binary>
+                <ubivg>
+                    <label></label>
+                    <miniosize></miniosize>
+                    <maxlogicaleraseblockcount></maxlogicaleraseblockcount>
+                    <logicaleraseblocksize></logicaleraseblocksize>
+                    <physicaleraseblocksize></physicaleraseblocksize>
+                    <subpagesize></subpagesize>
+                    <ubi>
+                        <type></type>
+                        <label></label>
+                        <id></id>
+                        <size></size>
+                        <binary></binary>
+                        <empty></empty>
+                    </ubi>
+                </ubivg>
+            </mtd>
+            <mtd>
+                <name></name>
+                <nr></nr>
+                <size></size>
+                <binary></binary>
+                <ubivg>
+                    <label></label>
+                    <miniosize></miniosize>
+                    <maxlogicaleraseblockcount></maxlogicaleraseblockcount>
+                    <logicaleraseblocksize></logicaleraseblocksize>
+                    <physicaleraseblocksize></physicaleraseblocksize>
+                    <subpagesize></subpagesize>
+                    <ubi>
+                        <type></type>
+                        <label></label>
+                        <id></id>
+                        <size></size>
+                        <binary></binary>
+                        <empty></empty>
+                    </ubi>
+                </ubivg>
+            </mtd>
+            <msdoshd>
+                <name></name>
+                <size></size>
+                <grub-install></grub-install>
+                <binary offset="" blocksize=""></binary>
+                <partition>
+                    <size></size>
+                    <label></label>
+                </partition>
+                <partition>
+                    <size></size>
+                    <label></label>
+                </partition>
+                <partition>
+                    <size></size>
+                    <label></label>
+                </partition>
+            </msdoshd>
+            <msdoshd>
+                <name></name>
+                <size></size>
+                <grub-install></grub-install>
+                <binary offset="" blocksize=""></binary>
+                <extended>
+                    <size></size>
+                    <logical>
+                        <size></size>
+                        <label></label>
+                        <bootable></bootable>
+                        <biosgrub></biosgrub>
+                    </logical>
+                    <logical>
+                        <size></size>
+                        <label></label>
+                        <bootable></bootable>
+                        <biosgrub></biosgrub>
+                    </logical>
+                    <logical>
+                        <size></size>
+                        <label></label>
+                        <bootable></bootable>
+                        <biosgrub></biosgrub>
+                    </logical>
+                </extended>
+            </msdoshd>
+            <msdoshd>
+                <name></name>
+                <size></size>
+                <grub-install></grub-install>
+                <binary offset="" blocksize=""></binary>
+                <extended>
+                    <size></size>
+                </extended>
+            </msdoshd>
+            <gpthd>
+                <name></name>
+                <size></size>
+                <grub-install></grub-install>
+            </gpthd>
+            <gpthd>
+                <name></name>
+                <size></size>
+                <grub-install></grub-install>
+            </gpthd>
+            <gpthd>
+                <name></name>
+                <size></size>
+                <grub-install></grub-install>
+            </gpthd>
+            <passno></passno>
+        </images>
+        <fstab>
+            <bylabel>
+                <label></label>
+                <mountpoint></mountpoint>
+                <fs>
+                    <type></type>
+                    <mkfs></mkfs>
+                    <tune2fs></tune2fs>
+                    <passno></passno>
+                </fs>
+                <options></options>
+            </bylabel>
+            <bylabel>
+                <label></label>
+                <mountpoint></mountpoint>
+                <fs>
+                    <type></type>
+                    <mkfs></mkfs>
+                    <tune2fs></tune2fs>
+                    <passno></passno>
+                </fs>
+                <options></options>
+            </bylabel>
+            <bylabel>
+                <label></label>
+                <mountpoint></mountpoint>
+                <fs>
+                    <type></type>
+                    <mkfs></mkfs>
+                    <tune2fs></tune2fs>
+                    <passno></passno>
+                </fs>
+                <options></options>
+            </bylabel>
+            <bydev>
+                <source></source>
+                <mountpoint></mountpoint>
+                <fs>
+                    <type></type>
+                    <mkfs></mkfs>
+                    <tune2fs></tune2fs>
+                    <passno></passno>
+                </fs>
+                <options></options>
+            </bydev>
+            <bydev>
+                <source></source>
+                <mountpoint></mountpoint>
+                <fs>
+                    <type></type>
+                    <mkfs></mkfs>
+                    <tune2fs></tune2fs>
+                    <passno></passno>
+                </fs>
+                <options></options>
+            </bydev>
+            <bydev>
+                <source></source>
+                <mountpoint></mountpoint>
+                <fs>
+                    <type></type>
+                    <mkfs></mkfs>
+                    <tune2fs></tune2fs>
+                    <passno></passno>
+                </fs>
+                <options></options>
+            </bydev>
+        </fstab>
+        <tighten></tighten>
+        <diet></diet>
+        <setsel></setsel>
+        <norecommend></norecommend>
+        <finetuning>
+            <addgroup></addgroup>
+        </finetuning>
+        <pbuilder>
+            <git revision=""></git>
+            <git revision=""></git>
+            <git revision=""></git>
+            <svn revision=""></svn>
+            <svn revision=""></svn>
+            <svn revision=""></svn>
+        </pbuilder>
+        <pkg-list>
+        </pkg-list>
+        <pkg-blacklist>
+            <sysroot>
+            </sysroot>
+            <sysroot>
+            </sysroot>
+            <sysroot>
+            </sysroot>
+        </pkg-blacklist>
+    </target>
+    <archive></archive>
+    <debootstrappkgs>
+    </debootstrappkgs>
+    <initvmpkgs>
+    </initvmpkgs>
+    <initvm_sources_list></initvm_sources_list>
+    <initvm_apt_prefs></initvm_apt_prefs>
+    <fullpkgs>
+    </fullpkgs>
+    <sources_list></sources_list>
+    <apt_prefs></apt_prefs>
+    <elbe_version></elbe_version>
+
+</ns1:RootFileSystem>
diff --git a/examples/includes/devel/finetuning.xml b/examples/includes/devel/finetuning.xml
new file mode 100644
index 0000000..457a8af
--- /dev/null
+++ b/examples/includes/devel/finetuning.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0"?>
+<finetuning>
+  <adduser shell="/bin/bash" passwd="notsosecure">user</adduser>
+  <rm>var/cache/apt/archives/*.deb</rm>
+</finetuning>
diff --git a/examples/includes/devel/hostname.xml b/examples/includes/devel/hostname.xml
new file mode 100644
index 0000000..b3f0f98
--- /dev/null
+++ b/examples/includes/devel/hostname.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0"?>
+<hostname>i386-stretch-devel</hostname>
diff --git a/examples/includes/devel/part.xml b/examples/includes/devel/part.xml
new file mode 100644
index 0000000..cba2ae0
--- /dev/null
+++ b/examples/includes/devel/part.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<msdoshd>
+  <name>sda.img</name>
+  <size>4000MiB</size>
+  <grub-install/>
+  <partition>
+    <size>remain</size>
+    <label>rfs</label>
+  </partition>
+</msdoshd>
diff --git a/examples/includes/devel/pkglist.xml b/examples/includes/devel/pkglist.xml
new file mode 100644
index 0000000..c0332f7
--- /dev/null
+++ b/examples/includes/devel/pkglist.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+
+<pkg-list>
+  <pkg>linux-image-686-pae</pkg>
+  <pkg>grub-pc</pkg>
+  <pkg>xserver-xorg-video-radeon</pkg>
+  <pkg>xserver-xorg-core</pkg>
+  <pkg>mono-runtime</pkg>
+  <pkg>slim</pkg>
+  <pkg>awesome</pkg>
+  <pkg>libxml2-dev</pkg>
+</pkg-list>
diff --git a/examples/includes/prod/finetuning.xml b/examples/includes/prod/finetuning.xml
new file mode 100644
index 0000000..00f7254
--- /dev/null
+++ b/examples/includes/prod/finetuning.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<finetuning>
+  <adduser shell="/bin/bash" passwd="supersecure">user</adduser>
+  <raw_cmd>passwd -d -l root</raw_cmd>
+  <rm>var/cache/apt/archives/*.deb</rm>
+</finetuning>
diff --git a/examples/includes/prod/hostname.xml b/examples/includes/prod/hostname.xml
new file mode 100644
index 0000000..b271560
--- /dev/null
+++ b/examples/includes/prod/hostname.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0"?>
+<hostname>i386-stretch-prod</hostname>
diff --git a/examples/includes/prod/part.xml b/examples/includes/prod/part.xml
new file mode 100644
index 0000000..0b94fe1
--- /dev/null
+++ b/examples/includes/prod/part.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<msdoshd>
+  <name>sda.img</name>
+  <size>1900MiB</size>
+  <grub-install/>
+  <partition>
+    <size>remain</size>
+    <label>rfs</label>
+  </partition>
+</msdoshd>
diff --git a/examples/includes/prod/pkglist.xml b/examples/includes/prod/pkglist.xml
new file mode 100644
index 0000000..ddde9c5
--- /dev/null
+++ b/examples/includes/prod/pkglist.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0"?>
+
+<pkg-list>
+  <pkg>linux-image-686-pae</pkg>
+  <pkg>grub-pc</pkg>
+  <pkg>xserver-xorg-video-radeon</pkg>
+  <pkg>xserver-xorg-core</pkg>
+  <pkg>mono-runtime</pkg>
+  <pkg>slim</pkg>
+  <pkg>awesome</pkg>
+</pkg-list>
diff --git a/examples/newXMLDocument.xml b/examples/newXMLDocument.xml
new file mode 100644
index 0000000..ca33505
--- /dev/null
+++ b/examples/newXMLDocument.xml
@@ -0,0 +1,388 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+To change this license header, choose License Headers in Project Properties.
+To change this template file, choose Tools | Templates
+and open the template in the editor.
+-->
+
+
+<ns1:RootFileSystem
+    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
+    xmlns:ns1='https://www.linutronix.de/projects/Elbe'
+    xsi:schemaLocation='https://www.linutronix.de/projects/Elbe file:/home/bene/work/elbe/elbe/elbepack/dbsfed.xsd'>
+    <initvm>
+        <buildtype></buildtype>
+        <mirror>
+            <primary_host></primary_host>
+            <primary_path></primary_path>
+            <primary_proto></primary_proto>
+            <primary_proxy></primary_proxy>
+            <cdrom></cdrom>
+            <url-list>
+                <url>
+                </url>
+                <url>
+                </url>
+                <url>
+                </url>
+            </url-list>
+        </mirror>
+        <noauth></noauth>
+        <preference pin=""></preference>
+        <suite></suite>
+        <pkg-list>
+            <pkg pin="" version="" auto="" md5=""></pkg>
+            <pkg pin="" version="" auto="" md5=""></pkg>
+            <pkg pin="" version="" auto="" md5=""></pkg>
+        </pkg-list>
+        <preseed>
+            <conf owner="" key="" type="" value=""></conf>
+            <conf owner="" key="" type="" value=""></conf>
+            <conf owner="" key="" type="" value=""></conf>
+        </preseed>
+        <size></size>
+        <img></img>
+        <portforwarding>
+            <forward>
+                <proto></proto>
+                <buildenv></buildenv>
+                <host></host>
+            </forward>
+            <forward>
+                <proto></proto>
+                <buildenv></buildenv>
+                <host></host>
+            </forward>
+            <forward>
+                <proto></proto>
+                <buildenv></buildenv>
+                <host></host>
+            </forward>
+        </portforwarding>
+    </initvm>
+    <project>
+        <name></name>
+        <version></version>
+        <description></description>
+        <buildtype></buildtype>
+        <mirror>
+            <primary_host></primary_host>
+            <primary_path></primary_path>
+            <primary_proto></primary_proto>
+            <primary_proxy></primary_proxy>
+            <cdrom></cdrom>
+            <url-list>
+            </url-list>
+        </mirror>
+        <noauth></noauth>
+        <preference pin=""></preference>
+        <raw-preference></raw-preference>
+        <raw-preference></raw-preference>
+        <raw-preference></raw-preference>
+        <suite></suite>
+        <buildimage>
+            <arch></arch>
+            <size></size>
+            <mem></mem>
+            <interpreter></interpreter>
+            <interpreterversion></interpreterversion>
+            <kinitrd></kinitrd>
+            <console></console>
+            <machine></machine>
+            <NIC>
+                <model></model>
+                <MAC></MAC>
+            </NIC>
+            <portforwarding>
+                <forward>
+                    <proto></proto>
+                    <buildenv></buildenv>
+                    <host></host>
+                </forward>
+            </portforwarding>
+            <pkgversionlist></pkgversionlist>
+            <pkg-list>
+            </pkg-list>
+        </buildimage>
+        <preseed>
+        </preseed>
+    </project>
+    <target>
+        <hostname></hostname>
+        <domain></domain>
+        <passwd></passwd>
+        <console></console>
+        <package>
+            <tar>
+                <name></name>
+                <options></options>
+            </tar>
+            <cpio>
+                <name></name>
+            </cpio>
+            <squashfs>
+                <name></name>
+            </squashfs>
+        </package>
+        <images>
+            <mtd>
+                <name></name>
+                <nr></nr>
+                <size></size>
+                <binary></binary>
+                <ubivg>
+                    <label></label>
+                    <miniosize></miniosize>
+                    <maxlogicaleraseblockcount></maxlogicaleraseblockcount>
+                    <logicaleraseblocksize></logicaleraseblocksize>
+                    <physicaleraseblocksize></physicaleraseblocksize>
+                    <subpagesize></subpagesize>
+                    <ubi>
+                        <type></type>
+                        <label></label>
+                        <id></id>
+                        <size></size>
+                        <binary></binary>
+                        <empty></empty>
+                    </ubi>
+                    <ubi>
+                        <type></type>
+                        <label></label>
+                        <id></id>
+                        <size></size>
+                        <binary></binary>
+                        <empty></empty>
+                    </ubi>
+                    <ubi>
+                        <type></type>
+                        <label></label>
+                        <id></id>
+                        <size></size>
+                        <binary></binary>
+                        <empty></empty>
+                    </ubi>
+                </ubivg>
+            </mtd>
+            <mtd>
+                <name></name>
+                <nr></nr>
+                <size></size>
+                <binary></binary>
+                <ubivg>
+                    <label></label>
+                    <miniosize></miniosize>
+                    <maxlogicaleraseblockcount></maxlogicaleraseblockcount>
+                    <logicaleraseblocksize></logicaleraseblocksize>
+                    <physicaleraseblocksize></physicaleraseblocksize>
+                    <subpagesize></subpagesize>
+                    <ubi>
+                        <type></type>
+                        <label></label>
+                        <id></id>
+                        <size></size>
+                        <binary></binary>
+                        <empty></empty>
+                    </ubi>
+                </ubivg>
+            </mtd>
+            <mtd>
+                <name></name>
+                <nr></nr>
+                <size></size>
+                <binary></binary>
+                <ubivg>
+                    <label></label>
+                    <miniosize></miniosize>
+                    <maxlogicaleraseblockcount></maxlogicaleraseblockcount>
+                    <logicaleraseblocksize></logicaleraseblocksize>
+                    <physicaleraseblocksize></physicaleraseblocksize>
+                    <subpagesize></subpagesize>
+                    <ubi>
+                        <type></type>
+                        <label></label>
+                        <id></id>
+                        <size></size>
+                        <binary></binary>
+                        <empty></empty>
+                    </ubi>
+                </ubivg>
+            </mtd>
+            <msdoshd>
+                <name></name>
+                <size></size>
+                <grub-install></grub-install>
+                <binary offset="" blocksize=""></binary>
+                <partition>
+                    <size></size>
+                    <label></label>
+                </partition>
+                <partition>
+                    <size></size>
+                    <label></label>
+                </partition>
+                <partition>
+                    <size></size>
+                    <label></label>
+                </partition>
+            </msdoshd>
+            <msdoshd>
+                <name></name>
+                <size></size>
+                <grub-install></grub-install>
+                <binary offset="" blocksize=""></binary>
+                <extended>
+                    <size></size>
+                    <logical>
+                        <size></size>
+                        <label></label>
+                        <bootable></bootable>
+                        <biosgrub></biosgrub>
+                    </logical>
+                    <logical>
+                        <size></size>
+                        <label></label>
+                        <bootable></bootable>
+                        <biosgrub></biosgrub>
+                    </logical>
+                    <logical>
+                        <size></size>
+                        <label></label>
+                        <bootable></bootable>
+                        <biosgrub></biosgrub>
+                    </logical>
+                </extended>
+            </msdoshd>
+            <msdoshd>
+                <name></name>
+                <size></size>
+                <grub-install></grub-install>
+                <binary offset="" blocksize=""></binary>
+                <extended>
+                    <size></size>
+                </extended>
+            </msdoshd>
+            <gpthd>
+                <name></name>
+                <size></size>
+                <grub-install></grub-install>
+            </gpthd>
+            <gpthd>
+                <name></name>
+                <size></size>
+                <grub-install></grub-install>
+            </gpthd>
+            <gpthd>
+                <name></name>
+                <size></size>
+                <grub-install></grub-install>
+            </gpthd>
+            <passno></passno>
+        </images>
+        <fstab>
+            <bylabel>
+                <label></label>
+                <mountpoint></mountpoint>
+                <fs>
+                    <type></type>
+                    <mkfs></mkfs>
+                    <tune2fs></tune2fs>
+                    <passno></passno>
+                </fs>
+                <options></options>
+            </bylabel>
+            <bylabel>
+                <label></label>
+                <mountpoint></mountpoint>
+                <fs>
+                    <type></type>
+                    <mkfs></mkfs>
+                    <tune2fs></tune2fs>
+                    <passno></passno>
+                </fs>
+                <options></options>
+            </bylabel>
+            <bylabel>
+                <label></label>
+                <mountpoint></mountpoint>
+                <fs>
+                    <type></type>
+                    <mkfs></mkfs>
+                    <tune2fs></tune2fs>
+                    <passno></passno>
+                </fs>
+                <options></options>
+            </bylabel>
+            <bydev>
+                <source></source>
+                <mountpoint></mountpoint>
+                <fs>
+                    <type></type>
+                    <mkfs></mkfs>
+                    <tune2fs></tune2fs>
+                    <passno></passno>
+                </fs>
+                <options></options>
+            </bydev>
+            <bydev>
+                <source></source>
+                <mountpoint></mountpoint>
+                <fs>
+                    <type></type>
+                    <mkfs></mkfs>
+                    <tune2fs></tune2fs>
+                    <passno></passno>
+                </fs>
+                <options></options>
+            </bydev>
+            <bydev>
+                <source></source>
+                <mountpoint></mountpoint>
+                <fs>
+                    <type></type>
+                    <mkfs></mkfs>
+                    <tune2fs></tune2fs>
+                    <passno></passno>
+                </fs>
+                <options></options>
+            </bydev>
+        </fstab>
+        <tighten></tighten>
+        <diet></diet>
+        <setsel></setsel>
+        <norecommend></norecommend>
+        <finetuning>
+            <addgroup></addgroup>
+        </finetuning>
+        <pbuilder>
+            <git revision=""></git>
+            <git revision=""></git>
+            <git revision=""></git>
+            <svn revision=""></svn>
+            <svn revision=""></svn>
+            <svn revision=""></svn>
+        </pbuilder>
+        <pkg-list>
+        </pkg-list>
+        <pkg-blacklist>
+            <sysroot>
+            </sysroot>
+            <sysroot>
+            </sysroot>
+            <sysroot>
+            </sysroot>
+        </pkg-blacklist>
+    </target>
+    <archive></archive>
+    <debootstrappkgs>
+    </debootstrappkgs>
+    <initvmpkgs>
+    </initvmpkgs>
+    <initvm_sources_list></initvm_sources_list>
+    <initvm_apt_prefs></initvm_apt_prefs>
+    <fullpkgs>
+    </fullpkgs>
+    <sources_list></sources_list>
+    <apt_prefs></apt_prefs>
+    <elbe_version></elbe_version>
+
+</ns1:RootFileSystem>
diff --git a/examples/portexpander.xml b/examples/portexpander.xml
new file mode 100644
index 0000000..9ee32f1
--- /dev/null
+++ b/examples/portexpander.xml
@@ -0,0 +1,78 @@
+<ns0:RootFileSystem xmlns:ns0="https://www.linutronix.de/projects/Elbe" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" created="2009-05-20T08:50:56" revision="6" xsi:schemaLocation="https://www.linutronix.de/projects/Elbe dbsfed.xsd">
+	<project>
+		<name>portexpander</name>
+		<version>1.0</version>
+		<description>
+			creates an UBI based target system act as portexpander
+		</description>
+		<buildtype>armel</buildtype>
+		<mirror>
+			<primary_host>debian.tu-bs.de</primary_host>
+			<primary_path>/debian</primary_path>
+			<primary_proto>http</primary_proto>
+		</mirror>
+		<suite>jessie</suite>
+	</project>
+	<target>
+		<hostname>portex</hostname>
+		<domain>tec.linutronix.de</domain>
+		<passwd>foo</passwd>
+		<console>ttyS0,115200</console>
+		<package>
+		  <!-- build a tarball of the target image -->
+		  <tar>
+		    <name>portexpander-rfs.tgz</name>
+		  </tar>
+		</package>
+		<images>
+			<mtd>
+				<name>nand.img</name>
+				<nr>0</nr>
+				<size>128MB</size>
+				<ubivg>
+					<label>nand</label>
+					<miniosize>2048</miniosize>
+					<maxlogicaleraseblockcount>2047</maxlogicaleraseblockcount>
+					<logicaleraseblocksize>126976</logicaleraseblocksize>
+					<physicaleraseblocksize>128KiB</physicaleraseblocksize>
+					<ubi>
+						<type>dynamic</type>
+						<label>rfs</label>
+						<id>1</id>
+						<size>128MiB</size>
+					</ubi>
+				</ubivg>
+			</mtd>
+		</images>
+		<fstab>
+			<bylabel>
+				<label>rfs</label>
+				<mountpoint>/</mountpoint>
+				<fs>
+					<type>ubifs</type>
+					<mkfs>-x lzo</mkfs>
+				</fs>
+			</bylabel>
+			<bydev>
+				<source>tmpfs</source>
+				<mountpoint>/tmp</mountpoint>
+				<fs>
+					<type>tmpfs</type>
+				</fs>
+				<options>size=4m</options>
+			</bydev>
+		</fstab>
+		<finetuning>
+			<command>ln -s /proc/mounts etc/mtab</command>
+		</finetuning>
+		<pkg-list>
+			<pkg>bash</pkg>
+			<pkg>socat</pkg>
+			<pkg>sysvinit-core</pkg>
+			<pkg>minicom</pkg>
+			<pkg>usbip</pkg>
+			<pkg>openssh-client</pkg>
+			<pkg>rsync</pkg>
+		</pkg-list>
+	</target>
+</ns0:RootFileSystem>
diff --git a/examples/x86_32-pc-hdimg-with-include-development.xml b/examples/x86_32-pc-hdimg-with-include-development.xml
new file mode 100644
index 0000000..ac9aa59
--- /dev/null
+++ b/examples/x86_32-pc-hdimg-with-include-development.xml
@@ -0,0 +1,39 @@
+<ns0:RootFileSystem xmlns:ns0="https://www.linutronix.de/projects/Elbe"
+		    xmlns:xi="http://www.w3.org/2003/XInclude"
+		    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+		    created="2009-05-20T08:50:56" revision="6"
+		    xsi:schemaLocation="https://www.linutronix.de/projects/Elbe dbsfed.xsd">
+	<project>
+		<name>i386-stretch-grub</name>
+		<version>1.0</version>
+		<description>for testing 32bit with grub2</description>
+		<buildtype>i386</buildtype>
+		<mirror>
+			<primary_host>ftp.de.debian.org</primary_host>
+			<primary_path>/debian</primary_path>
+			<primary_proto>http</primary_proto>
+		</mirror>
+		<suite>stretch</suite>
+	</project>
+	<target>
+		<xi:include href="includes/devel/hostname.xml"/>
+		<domain>elbe-rfs.org</domain>
+		<passwd>foo</passwd>
+		<console>ttyS0,115200</console>
+		<images>
+			<xi:include href="includes/devel/part.xml"/>
+		</images>
+		<fstab>
+			<bylabel>
+				<label>rfs</label>
+				<mountpoint>/</mountpoint>
+				<fs>
+					<type>ext4</type>
+					<tune2fs>-i 0</tune2fs>
+				</fs>
+			</bylabel>
+		</fstab>
+		<xi:include href="includes/devel/finetuning.xml"/>
+		<xi:include href="includes/devel/pkglist.xml"/>
+	</target>
+</ns0:RootFileSystem>
diff --git a/examples/x86_32-pc-hdimg-with-include-production.xml b/examples/x86_32-pc-hdimg-with-include-production.xml
new file mode 100644
index 0000000..5e41b15
--- /dev/null
+++ b/examples/x86_32-pc-hdimg-with-include-production.xml
@@ -0,0 +1,39 @@
+<ns0:RootFileSystem xmlns:ns0="https://www.linutronix.de/projects/Elbe"
+		    xmlns:xi="http://www.w3.org/2003/XInclude"
+		    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+		    created="2009-05-20T08:50:56" revision="6"
+		    xsi:schemaLocation="https://www.linutronix.de/projects/Elbe dbsfed.xsd">
+	<project>
+		<name>i386-stretch-grub</name>
+		<version>1.0</version>
+		<description>for testing 32bit with grub2</description>
+		<buildtype>i386</buildtype>
+		<mirror>
+			<primary_host>ftp.de.debian.org</primary_host>
+			<primary_path>/debian</primary_path>
+			<primary_proto>http</primary_proto>
+		</mirror>
+		<suite>stretch</suite>
+	</project>
+	<target>
+		<xi:include href="includes/prod/hostname.xml"/>
+		<domain>elbe-rfs.org</domain>
+		<passwd>foo</passwd>
+		<console>ttyS0,115200</console>
+		<images>
+			<xi:include href="includes/prod/part.xml"/>
+		</images>
+		<fstab>
+			<bylabel>
+				<label>rfs</label>
+				<mountpoint>/</mountpoint>
+				<fs>
+					<type>ext4</type>
+					<tune2fs>-i 0</tune2fs>
+				</fs>
+			</bylabel>
+		</fstab>
+		<xi:include href="includes/prod/finetuning.xml"/>
+		<xi:include href="includes/prod/pkglist.xml"/>
+	</target>
+</ns0:RootFileSystem>
diff --git a/examples/x86_64-pc-hdimg-minimal.xml b/examples/x86_64-pc-hdimg-minimal.xml
new file mode 100644
index 0000000..b0c0cef
--- /dev/null
+++ b/examples/x86_64-pc-hdimg-minimal.xml
@@ -0,0 +1,84 @@
+<ns0:RootFileSystem xmlns:ns0="https://www.linutronix.de/projects/Elbe" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" created="2009-05-20T08:50:56" revision="6" xsi:schemaLocation="https://www.linutronix.de/projects/Elbe dbsfed.xsd">
+	<project>
+		<name>elbe-gnome3</name>
+		<version>1.0</version>
+		<description>
+			use this command to generate a vmware image:
+			qemu-img convert -O vmdk debian-jessie-amd64-gnome3.img debian-jessie-amd64-gnome3.vmdk
+		</description>
+		<buildtype>amd64</buildtype>
+		<mirror>
+			<primary_host>ftp.de.debian.org</primary_host>
+			<primary_path>/debian</primary_path>
+			<primary_proto>http</primary_proto>
+		</mirror>
+		<suite>jessie</suite>
+	</project>
+	<target>
+		<hostname>elbe-gnome</hostname>
+		<domain>tec.linutronix.de</domain>
+		<passwd>elbe</passwd>
+		<console>ttyS0,115200</console>
+		<images>
+			<msdoshd>
+				<name>debian-jessie-amd64-gnome3.img</name>
+				<size>8000MiB</size>
+				<grub-install/>
+				<partition>
+					<size>6GiB</size>
+					<label>rfs</label>
+				</partition>
+				<extended>
+					<size>remain</size>
+					<logical>
+						<size>remain</size>
+						<label>home</label>
+					</logical>
+				</extended>
+			</msdoshd>
+		</images>
+		<fstab>
+			<bylabel>
+				<label>rfs</label>
+				<mountpoint>/</mountpoint>
+				<fs>
+					<type>ext4</type>
+					<tune2fs>-i 0</tune2fs>
+				</fs>
+			</bylabel>
+			<bylabel>
+				<label>home</label>
+				<mountpoint>/home</mountpoint>
+				<fs>
+					<type>ext4</type>
+					<tune2fs>-i 0</tune2fs>
+				</fs>
+			</bylabel>
+			<bydev>
+				<source>none</source>
+				<mountpoint>/sys/kernel/debug</mountpoint>
+				<fs>
+					<type>debugfs</type>
+				</fs>
+			</bydev>
+		</fstab>
+		<finetuning>
+			<rm>var/cache/apt/archives/*.deb</rm>
+			<adduser passwd="elbe" shell="/bin/zsh">elbe</adduser>
+			<command>echo de_DE.UTF-8 > /etc/locale.gen</command>
+			<command>locale-gen</command>
+			<command>echo "GRUB_GFXPAYLOAD_LINUX=text" >> /etc/default/grub</command>
+		</finetuning>
+		<pkg-list>
+			<pkg>grub-pc</pkg>
+			<pkg>linux-image-amd64</pkg>
+			<pkg>openssh-client</pkg>
+			<pkg>openssh-server</pkg>
+			<pkg>less</pkg>
+			<pkg>bash</pkg>
+			<pkg>zsh</pkg>
+			<pkg>vim-nox</pkg>
+			<pkg>emacs-nox</pkg>
+		</pkg-list>
+	</target>
+</ns0:RootFileSystem>
-- 
2.11.0





More information about the elbe-devel mailing list