blob: b657f8f5aa3a817724040a208a002ed969924398 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# The openslx config will be placed in "/etc/openslx" in initramfs and copied
# to "/opt/openslx/config" in the main rootfs image.
# A comma separated list of dnbd3 server host names or ip addresses where
# the read only image can be accessed. The first matching ip will be used.
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'
# Script to run and set the read only device.
# (e.g. "lvm_scan && read_only_partition=/dev/centos/root")
SLX_SYSTEM_PARTITION_PREPARATION_SCRIPT=''
# 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%
'
# Size in MB of the RAMdisk to use as a scratch fallback.
SLX_RAMDISK_SIZE_IN_MB=''
# If empty we will end up in an empty fstab file. If you want to reuse the
# original fstab (from the template system) provide a dummy script like "true".
SLX_GENERATE_FSTAB_SCRIPT='
echo "/dev/mapper/root / btrfs subvol=root 0 0" >> "$NEWROOT/etc/fstab"
'
# Specifies mount options for the final root location.
SLX_MOUNT_ROOT_OPTIONS='-o subvol=root'
# Path where all the logs should be placed. Deprecated (kind of).
SLX_LOG_FILE_PATH='/var/log/openslx'
|