On 21.08.2014 16:28, har...@redhat.com wrote:
> From: Harald Hoyer <har...@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?

_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to