Revision fd786991
b/common.sh.in | ||
---|---|---|
166 | 166 |
# 3 - Rest |
167 | 167 |
$sfdisk_cmd <<EOF |
168 | 168 |
,100,L,* |
169 |
,$INSTANCE_BE_memory,S
|
|
169 |
,${SWAP_SIZE},S
|
|
170 | 170 |
,,L |
171 | 171 |
EOF |
172 | 172 |
elif [ "${SWAP}" = "no" -a -z "${KERNEL_PATH}" ] ; then |
... | ... | |
182 | 182 |
# 1 - Size of Memory, swap |
183 | 183 |
# 2 - Rest |
184 | 184 |
$sfdisk_cmd <<EOF |
185 |
,$INSTANCE_BE_memory,S
|
|
185 |
,$SWAP_SIZE,S
|
|
186 | 186 |
,,L |
187 | 187 |
EOF |
188 | 188 |
elif [ "${SWAP}" = "no" -a -n "${KERNEL_PATH}" ] ; then |
... | ... | |
363 | 363 |
# will use it, this declaration is to make sure the variable is set |
364 | 364 |
: ${CDINSTALL:="yes"} |
365 | 365 |
: ${SWAP:="yes"} |
366 |
: ${SWAP_SIZE:="${INSTANCE_BE_memory}"} |
|
366 | 367 |
: ${IMAGE_NAME:=""} |
367 | 368 |
: ${IMAGE_TYPE:="qemu"} |
368 | 369 |
: ${ARCH:=""} |
b/defaults | ||
---|---|---|
8 | 8 |
# SWAP: Create a swap partition |
9 | 9 |
# SWAP=yes |
10 | 10 |
|
11 |
# SWAP_SIZE: Manually set the size of the swap partition (in MB) |
|
12 |
# If left empty, it will set the size equal to the memory for the instance. |
|
13 |
# Make sure you have enough disk space for the swap partition! |
|
14 |
# SWAP_SIZE="" |
|
15 |
|
|
11 | 16 |
# IMAGE_NAME: Name of the image to use |
12 | 17 |
# Generally you use the name of the image with the version of the OS included. |
13 | 18 |
# Examples include: |
Also available in: Unified diff