diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-03-31 21:34:46 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-04-02 12:55:59 +0200 |
commit | 36e8ba9bcf8ffc753032a119b937308212326ca6 (patch) | |
tree | ca2f35ed2532c1f0d88d9052ac8b652d061ada7c /src/debug-generator/debug-generator.c | |
parent | build(deps): bump systemd/mkosi (diff) | |
download | systemd-36e8ba9bcf8ffc753032a119b937308212326ca6.tar.xz systemd-36e8ba9bcf8ffc753032a119b937308212326ca6.zip |
debug-generator: Use arg_dest instead of argument
Diffstat (limited to '')
-rw-r--r-- | src/debug-generator/debug-generator.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/debug-generator/debug-generator.c b/src/debug-generator/debug-generator.c index 741b59f320..fb31815d43 100644 --- a/src/debug-generator/debug-generator.c +++ b/src/debug-generator/debug-generator.c @@ -141,14 +141,14 @@ static int generate_wants_symlinks(void) { return r; } -static void install_debug_shell_dropin(const char *dir) { +static void install_debug_shell_dropin(void) { const char *tty = arg_debug_tty ?: arg_default_debug_tty; int r; if (!tty || path_equal(tty, skip_dev_prefix(DEBUGTTY))) return; - r = write_drop_in_format(dir, "debug-shell.service", 50, "tty", + r = write_drop_in_format(arg_dest, "debug-shell.service", 50, "tty", "[Unit]\n" "Description=Early root shell on /dev/%s FOR DEBUGGING ONLY\n" "ConditionPathExists=\n" @@ -173,7 +173,7 @@ static int run(const char *dest, const char *dest_early, const char *dest_late) if (r < 0) return log_oom(); - install_debug_shell_dropin(arg_dest); + install_debug_shell_dropin(); } r = generate_mask_symlinks(); |