Révision b3bdfdbf
Ajouté par Ermal il y a presque 10 ans
builder_scripts/builder_common.sh | ||
---|---|---|
137 | 137 |
|
138 | 138 |
MOUNT_PRESTAGE=$(mount | grep prestagebacking | grep -v grep | wc -l) |
139 | 139 |
if [ $MOUNT_PRESTAGE -eq 0 ]; then |
140 |
mdconfig -a -t swap -u 10001 -s 300M
|
|
140 |
mdconfig -a -t swap -u 10001 -s ${MEMORYDISK_SIZE}
|
|
141 | 141 |
mkdir -p ${PFSENSESTAGEDIR} |
142 | 142 |
newfs -L prestagebacking -U /dev/md10001 |
143 | 143 |
mount /dev/ufs/prestagebacking ${PFSENSESTAGEDIR} |
... | ... | |
147 | 147 |
|
148 | 148 |
MOUNT_STAGE=$(mount | grep finalstagebacking | grep -v grep | wc -l) |
149 | 149 |
if [ $MOUNT_STAGE -eq 0 ]; then |
150 |
mdconfig -a -t swap -u 10002 -s 400M
|
|
150 |
mdconfig -a -t swap -u 10002 -s ${MEMORYDISK_SIZE}
|
|
151 | 151 |
mkdir -p ${PFSENSEISODIR} |
152 | 152 |
newfs -L finalstagebacking -U /dev/md10002 |
153 | 153 |
mount /dev/ufs/finalstagebacking ${PFSENSEISODIR} |
Formats disponibles : Unified diff
Make the size of memory disks configurable to allow bigger sizes. Suggested by: Warren