buildroot: allow customizing the backing store for /var
Currently /var was always backed by /var/tmp, but we may want to control exactly what it is backed by. The default is the same, so this is not a behavioral change.
This commit is contained in:
parent
2691acefeb
commit
2837604bf8
1 changed files with 2 additions and 2 deletions
|
|
@ -12,10 +12,10 @@ __all__ = [
|
|||
|
||||
|
||||
class BuildRoot:
|
||||
def __init__(self, root, runner, path="/run/osbuild", libdir=None):
|
||||
def __init__(self, root, runner, path="/run/osbuild", libdir=None, var="/var/tmp"):
|
||||
self.root = tempfile.mkdtemp(prefix="osbuild-buildroot-", dir=path)
|
||||
self.api = tempfile.mkdtemp(prefix="osbuild-api-", dir=path)
|
||||
self.var = tempfile.mkdtemp(prefix="osbuild-var-", dir="/var/tmp")
|
||||
self.var = tempfile.mkdtemp(prefix="osbuild-var-", dir=var)
|
||||
self.mounts = []
|
||||
self.libdir = libdir or "/usr/lib/osbuild"
|
||||
self.runner = runner
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue