kiwi-el8/test/data/example_disk_size_partitions_config.xml
Marcus Schäfer 747f878911
Support squashfs in custom partitions
When using squashfs in a custom partitions setup like the following:

<partitions>
    <partition ... filesystem="squashfs"/>
</partitions>

The build fails because the filesystem needs to be created
using the create_on_file() API and not the create_on_device()
API. In addition the size estimation is bogus when using
squashfs and cannot be pre-calculated because we only know
how much space the filesystem really needs after mksquashfs
as worked on the data and the compression. Thus this commit
also relaxes the required size check in case of squashfs.
Last but not least a squashfs filesystem does not provide
label or UUID and can only be referenced by the PARTUUID
it gets dumped on or by the native unix device node. As
the unix node is a loop during build time of the image and
meaningless this commit also forces by-partuuid mapping in
fstab when mounting the squashfs based device.
2022-06-21 22:19:56 +02:00

34 lines
1.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<image schemaversion="7.5" name="TestPartitions">
<description type="system">
<author>Marcus Schäfer</author>
<contact>ms@suse.com</contact>
<specification>
test partitions setup
</specification>
</description>
<preferences>
<version>1.1.1</version>
<packagemanager>zypper</packagemanager>
<type image="oem" filesystem="ext3" installiso="true" kernelcmdline="splash" firmware="efi" bootpartition="true" bootpartsize="10">
<partitions>
<partition name="var" size="100" mountpoint="/var" filesystem="ext3"/>
<partition name="var/tmp" size="500" mountpoint="/var/tmp" filesystem="xfs"/>
<partition name="tmp" size="100" mountpoint="/tmp" filesystem="squashfs"/>
</partitions>
</type>
</preferences>
<repository>
<source path="obs://13.2/repo/oss"/>
</repository>
<packages type="image">
<package name="patterns-openSUSE-base"/>
</packages>
<packages type="bootstrap">
<package name="udev"/>
<package name="filesystem"/>
<package name="glibc-locale"/>
</packages>
</image>