if os.getuid() == 0:
cmdline += [
- "--workspace-dir=/var/tmp",
+ f"--workspace-dir={args.workspace_dir}",
"--output-mode=600",
]
default=None,
type=Path,
)
+ parser.add_argument(
+ "--workspace-dir",
+ metavar="DIR",
+ help="Workspace directory",
+ default="/var/tmp",
+ type=Path,
+ )
parser.add_argument(
"--debug",
help="Turn on debugging output",
if os.getuid() == 0:
cmdline += [
- "--workspace-dir=/var/tmp",
+ f"--workspace-dir={args.workspace_dir}",
"--package-cache-dir=/var",
"--cache-only=metadata",
]
: Path to a directory where to place all generated artifacts. Defaults to the
current working directory.
+`--workspace-dir=`
+: Path to a directory where to store data required temporarily while
+ building the image. Defaults to `/var/tmp`.
+
`--debug`
: Enable additional debugging output.
: Path to a directory where to place all generated artifacts. Defaults to the
current working directory.
+`--workspace-dir=`
+: Path to a directory where to store data required temporarily while
+ building the image. Defaults to `/var/tmp`.
+
`--generic`, `-g`
: Build a generic initrd without host-specific kernel modules, which should
allow the local system to boot on different hardware, although it's tied to