Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
obs:server:fedora:2.8
obs-server
obs-server-2.8-0022-dist-Allow-worker-to-use-tm...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File obs-server-2.8-0022-dist-Allow-worker-to-use-tmpfs-for-other-virtualisat.patch of Package obs-server
From e5d1f64ef30f409ae29a6c6f275bbb6828ae10b1 Mon Sep 17 00:00:00 2001 From: Oleg Girko <ol@infoserver.lv> Date: Wed, 31 Aug 2016 03:57:30 +0100 Subject: [PATCH] [dist] Allow worker to use tmpfs for other virtualisation methods. This change makes worker startup script to pass --tmpfs parameter to bs_worker when using other virtualisation methods besides xen and kvm wnen OBS_VM_USE_TMPFS configuration variable is set. This allows to speed up lxc and even chroot builds. The OBS_VM_DISK_AUTOSETUP_ROOT_FILESIZE configuration variable is also regarded and passed as a value of --vmdisk-rootsize option allowing to limit maximum size of tmpfs. Signed-off-by: Oleg Girko <ol@infoserver.lv> --- dist/obsworker | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dist/obsworker b/dist/obsworker index bf6a54c..bdbef6e 100755 --- a/dist/obsworker +++ b/dist/obsworker @@ -355,6 +355,12 @@ case "$1" in WORKER_NR="--vm-worker-nr $I" OBS_WORKER_OPT="$OBS_WORKER_OPT1 $WORKER $WORKER_NR $VMDISK_FILESYSTEM $VMDISK_MOUNT_OPTIONS $VMDISK_CLEAN" else + if [ -n "$OBS_VM_USE_TMPFS" ]; then + TMPFS="--tmpfs" + if [ -n "$OBS_VM_DISK_AUTOSETUP_ROOT_FILESIZE" ]; then + TMPFS="$TMPFS --vmdisk-rootsize ${OBS_VM_DISK_AUTOSETUP_ROOT_FILESIZE}" + fi + fi mkdir -p $R DEVICE= SWAP= -- 2.9.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor