Skip to content

Commit 4ba7755

Browse files
committed
Update integration test
1 parent 904a8ee commit 4ba7755

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,22 @@
3636
</type>
3737
</preferences>
3838
<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">
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_fs="ext4" spare_part_mountpoint="/home" spare_part_is_last="true">
4040
<bootloader name="grub2" console="serial" timeout="10"/>
4141
<oemconfig>
4242
<oem-unattended>true</oem-unattended>
4343
<oem-swap>true</oem-swap>
44-
<oem-swapsize>1024</oem-swapsize>
45-
<!-- set root partition to fixed 2048MB -->
44+
<oem-swapsize>512</oem-swapsize>
45+
<!-- set root partition to a fixed value to keep address consistent -->
4646
<oem-systemsize>2048</oem-systemsize>
4747
<oem-multipath-scan>false</oem-multipath-scan>
48-
<!-- data part (spare) is last, no auto resize from us -->
49-
<oem-resize>false</oem-resize>
48+
<oem-resize>true</oem-resize>
5049
</oemconfig>
5150
<systemdisk>
52-
<volume name="home"/>
51+
<volume name="root"/>
5352
</systemdisk>
5453
<!-- whole disk must be big enough for fixed root + other -->
55-
<size unit="M">3100</size>
54+
<size unit="G">3</size>
5655
</type>
5756
</preferences>
5857
<users>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
11
#!/bin/bash
22
set -ex
33

4+
declare kiwi_profiles=${kiwi_profiles}
5+
46
#======================================
57
# Activate services
68
#--------------------------------------
79
systemctl enable sshd
810
systemctl enable grub_config
911
systemctl enable dracut_hostonly
12+
13+
# Just in case the kiwi resizer is disabled in the system and
14+
# gets dropped from the initrd by the customer for some reason
15+
for profile in ${kiwi_profiles//,/ }; do
16+
if [ "${profile}" = "Retain" ]; then
17+
cat > /etc/fstab.script <<-EOF
18+
sed -ie "s@/home ext4 defaults@/home ext4 x-systemd.growfs,defaults@" /etc/fstab
19+
rm /etc/fstabe
20+
EOF
21+
fi
22+
done

0 commit comments

Comments
 (0)