On 11 February 2015 at 20:43, Lennart Poettering <lenn...@poettering.net> wrote: > On Thu, 05.02.15 16:11, Dimitri John Ledkov (dimitri.j.led...@intel.com) > wrote: > >> >> -static int get_config_path(UnitFileScope scope, bool runtime, const char >> *root_dir, char **ret) { >> +static int get_config_path(UnitFileScope scope, bool runtime, bool preset, >> const char *root_dir, char **ret) { >> char *p = NULL; >> int r; >> >> @@ -71,7 +71,10 @@ static int get_config_path(UnitFileScope scope, bool >> runtime, const char *root_d >> case UNIT_FILE_SYSTEM: >> >> if (runtime) >> - p = path_join(root_dir, "/run/systemd/system", >> NULL); >> + if (preset) >> + p = path_join(root_dir, >> "/run/systemd/system-preset-transient", NULL); >> + else >> + p = path_join(root_dir, >> "/run/systemd/system", NULL); > > Hmm, shouldn't we just apply this directly to /run/systemd/system? > There's no real need to keep this separate? > > I mean if the user shall be able to undo changes made by these presets > with "systemctl --runtime disable" it would be good not to introduce a > new dir for all of this...
Yes, we can reuse existing dir for this. But was not entirely sure about that initially when writting this, would simplify a few things in this patch. -- Regards, Dimitri. Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ. _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel