[systemd-devel] [PATCH V2] use the switch_root function in shutdown
Harald Hoyer
harald.hoyer at gmail.com
Thu Aug 21 07:49:00 PDT 2014
On 21.08.2014 16:28, harald at redhat.com wrote:
> From: Harald Hoyer <harald at redhat.com>
>
> removes code duplication
> ---
>
> Removed all references to "/mnt" in switch_root() and the bogus comment.
>
> Makefile.am | 1 +
> src/core/main.c | 2 +-
> src/core/shutdown.c | 77 +++++---------------------------------------------
> src/core/switch-root.c | 14 +++------
> src/core/switch-root.h | 2 +-
> 5 files changed, 14 insertions(+), 82 deletions(-)
>
> diff --git a/Makefile.am b/Makefile.am
> index 4028112..6401fcb 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -1873,6 +1873,7 @@ systemd_shutdown_SOURCES = \
>
> systemd_shutdown_LDADD = \
> libsystemd-label.la \
> + libsystemd-core.la \
> libudev-internal.la \
> libsystemd-shared.la
>
We also might want to move switch_root.c to shared, so we can avoid linking to
core here.
Comments?
More information about the systemd-devel
mailing list