summaryrefslogtreecommitdiffstats
path: root/docs/ROOT_STORAGE_DAEMONS.md
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-07-13 18:19:04 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-07-15 13:10:39 +0200
commit17021368fc5b9b3800125414362e82daf43a785d (patch)
tree53377b5e93f402871ff10bad2df1e9ee8ac001c1 /docs/ROOT_STORAGE_DAEMONS.md
parentbless-boot-generator: use DEFINE_MAIN_GENERATOR_FUNCTION() (diff)
downloadsystemd-17021368fc5b9b3800125414362e82daf43a785d.tar.xz
systemd-17021368fc5b9b3800125414362e82daf43a785d.zip
generators: accept one or three args, do not write to /tmp
Since the general generator logic was established in the rewrite in 07719a21b6425d378b36bb8d7f47ad5ec5296d28, generators would always write to /tmp by default. I think this not a good default at all, because generators write a bunch of files and would create a mess in /tmp. And for debugging, one generally needs to remove all the files in the output directory, because generators will complain in the output paths are already present. Thus the approach of disabling console logging and writing many files to /tmp when invoked with no arguments is not nice, so let's disallow operation with no args. But when debugging, one generally does not care about the separate output dirs (most generators use only one). Thus the general pattern I use is something like: rm -rf /tmp/x && mkdir /tmp/x && build/some-generator /tmp/{x,x,x} This commit allows only one directory to be specified and simplifies this to: rm -rf /tmp/x && mkdir /tmp/x && build/some-generator /tmp/x
Diffstat (limited to 'docs/ROOT_STORAGE_DAEMONS.md')
0 files changed, 0 insertions, 0 deletions