File tree Expand file tree Collapse file tree 2 files changed +19
-7
lines changed
build-tests/x86/tumbleweed/test-image-disk Expand file tree Collapse file tree 2 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -ex
33
4+ declare kiwi_profiles=${kiwi_profiles}
5+
46# ======================================
57# Activate services
68# --------------------------------------
79systemctl enable sshd
810systemctl enable grub_config
911systemctl 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
You can’t perform that action at this time.
0 commit comments