Hello Kyle, On Thu, 2022-05-26 at 10:09 -0400, Kyle Edwards wrote:
Hello,
I've been running an OBS worker for some time now, and today noticed that it's consuming a lot of disk space. It seems that the BUILD directory (/srv/obs/worker/root_*/usr/src/packages/BUILD) doesn't get cleaned after the build is finished. Is there some way to make it do this? And is there some way to make it clean the BUILD directories that are already there?
For /usr/src/packages/BUILD, you probably want to define the "%clean" section in each of your spec files. Instead, you may want to clean up the entire /srv/obs/worker/root_*/ directories. For the latter, you may want to take a look at /etc/sysconfig/obs-server and change the following values: ## Path: Applications/OBS ## Description: If chroot/lxc is used for build, empty it after build is finished ## Type: ("yes" | "") ## Default: "" ## Config: OBS # # OBS_WORKER_CLEANUP_CHROOT="" ##Path: Application/OBS ## Description: wipes the build environment of the worker after the build ## Type: ("yes" | "") ## Default: "" ## Config: OBS # # OBS_WORKER_WIPE_AFTER_BUILD="" Regards, Srinidhi.