summaryrefslogblamecommitdiffstats
path: root/dev-tools/example-openslx.config
blob: 728eb5ea31bde7661a2014aa627b69126c2ad425 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                                                             
 


                                                                         



                                                       

                                                                             

                                                                                



                                                                              









                                                                       
                                                                      











                                                                            
                                                      
                                       



                                                                     
# The openslx config will be placed in "/etc/openslx" in initramfs and copied
# to "/opt/openslx/config" in the main rootfs image.

# A space separated list of dnbd3 server host names or ip addresses where
# the read only image can be accessed.
SLX_DNBD3_SERVERS='10.1.1.1 10.1.1.2'
# Path on remote dnbd3 server for basic readonly image.
SLX_DNBD3_IMAGE='centos/centos-rootfs.qcow2'
# DNBD3 image revision to use.
SLX_DNBD3_RID='1'
# Partition identifier for the system partition within the qcow2 rootfs image
# If empty the whole device will be used (no partition assumed).
# e.g. 'SLX_SYS' if built with git://git.openslx.org/openslx-ng/packer-templates
SLX_SYSTEM_PARTITION_IDENTIFIER='SLX_SYS'
# Local device (HDD) to use as a scratch space to combine with the DNBD3 image
# to make it writable via device mapper. This can be an MBR type (e.g. 44) or
# a GPT label. If empty, a RAMdisk will be used as a fallback.
SLX_WRITABLE_DEVICE_IDENTIFIER='44'
# This is a kind of partition table for the scratch device.
# A line is composed of:
#       <type>         <name> <size> <crypt>
#
# * Type can be 'thin-snapshot', 'thin-volume', 'snapshot' or 'linear'.
# * Name is just a name of the device mapper device created.
# * Size are precalculated on the writable device found, so percentages
# are calculated on the total device size. Lower and upper bounds can
# be set, these will be attributed in a first-come-first-serve manner
# (with respect to line order).
# * Crypt would encrypt the device mapper device with a temporary key.
# 0 to disable (default), 1 to enable. Currently does not support persistent
# keys.
# Example of a more advanced partition config:
#		thin-snapshot   root    10G    1
#		thin-volume     tmp     20G    0
#		linear          data0   5-10G  1
#		linear          data1   1-50%  1
# There needs to be at least one snapshot device configured, if none are set
# it will default to use the *entire* writable device as a thin-snapshot:
SLX_WRITABLE_DEVICE_PARTITION_TABLE='
	thin-snapshot     root    100%
'
# Specifies mount options for the final root location.
SLX_MOUNT_ROOT_OPTIONS='-o subvol=root'
# Additional configuration or initialization script to run in stage3,
# before dnbd3root setup, to e.g. partition and format the disk.
# Enable slx-extra-script module for this to work!
SLX_EXTRA_SCRIPT_URL='http://server/extra-script.sh'