Skip to content

Commit 034f34e

Browse files
committed
Add integration test build for retain feature
1 parent a1d9bd4 commit 034f34e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

build-tests/x86/tumbleweed/test-image-disk/appliance.kiwi

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
<contact>[email protected]</contact>
77
<specification>Disk test build</specification>
88
</description>
9+
<profiles>
10+
<profile name="Standard" description="Standard Disk"/>
11+
<profile name="Retain" description="Retain Last Partition"/>
12+
</profiles>
913
<preferences>
1014
<version>1.42.1</version>
1115
<packagemanager>zypper</packagemanager>
@@ -16,16 +20,39 @@
1620
<rpm-check-signatures>false</rpm-check-signatures>
1721
<bootsplash-theme>breeze</bootsplash-theme>
1822
<bootloader-theme>openSUSE</bootloader-theme>
23+
</preferences>
24+
<preferences profiles="Standard">
1925
<type image="oem" filesystem="btrfs" kernelcmdline="console=ttyS0" firmware="efi" installiso="true" bootpartition="false" btrfs_root_is_snapshot="true" installboot="install">
2026
<bootloader name="grub2" console="serial" timeout="10"/>
2127
<oemconfig>
2228
<oem-unattended>true</oem-unattended>
29+
<oem-swap>true</oem-swap>
30+
<oem-swapsize>1024</oem-swapsize>
31+
<oem-multipath-scan>false</oem-multipath-scan>
32+
</oemconfig>
33+
<systemdisk>
34+
<volume name="home"/>
35+
</systemdisk>
36+
</type>
37+
</preferences>
38+
<preferences profiles="Retain">
39+
<type image="oem" filesystem="btrfs" kernelcmdline="console=ttyS0 rd.kiwi.install.retain_last" firmware="efi" installiso="true" bootpartition="false" btrfs_root_is_snapshot="true" installboot="install" spare_part="0" spare_part_is_last="true">
40+
<bootloader name="grub2" console="serial" timeout="10"/>
41+
<oemconfig>
42+
<oem-unattended>true</oem-unattended>
43+
<oem-swap>true</oem-swap>
2344
<oem-swapsize>1024</oem-swapsize>
45+
<!-- set root partition to fixed 2048MB -->
46+
<oem-systemsize>2048</oem-systemsize>
2447
<oem-multipath-scan>false</oem-multipath-scan>
48+
<!-- data part (spare) is last, no auto resize from us -->
49+
<oem-resize>false</oem-resize>
2550
</oemconfig>
2651
<systemdisk>
2752
<volume name="home"/>
2853
</systemdisk>
54+
<!-- whole disk must be big enough for fixed root + other -->
55+
<size unit="M">3100</size>
2956
</type>
3057
</preferences>
3158
<users>

0 commit comments

Comments
 (0)