Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Le Bihan <eric.le.bihan.dev@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [Patch v2 1/1] systemd: rework network/tty units installation
Date: Mon, 23 Jun 2014 11:43:59 +0200	[thread overview]
Message-ID: <20140623094359.GA2439@ned> (raw)
In-Reply-To: <53A7C0CA.9020406@mind.be>

Hi!
On Mon, Jun 23, 2014 at 07:53:14AM +0200, Arnout Vandecappelle wrote:
> On 21/06/14 22:50, Eric Le Bihan wrote:
> > The installation of the network.service and serial-getty.service unit
> > files are now performed via the <pkg>_INIT_SYSTEMD mechanism instead of
> > an installation hook.
> >
> > Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
> > ---
> >  package/systemd/systemd.mk | 34 +++++++++++++++++-----------------
> >  1 file changed, 17 insertions(+), 17 deletions(-)
> >
> > diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
> > index f3874db..1a606cd 100644
> > --- a/package/systemd/systemd.mk
> > +++ b/package/systemd/systemd.mk
> > @@ -101,6 +101,13 @@ ifeq ($(BR2_PACKAGE_SYSTEMD_NETWORKD),y)
> >  SYSTEMD_CONF_OPT += --enable-networkd
> >  else
> >  SYSTEMD_CONF_OPT += --disable-networkd
> > +define SYSTEMD_INSTALL_SERVICE_NETWORK
> > +	$(INSTALL) -D -m 644 package/systemd/network.service \
> > +		$(TARGET_DIR)/etc/systemd/system/network.service
> > +	mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
> > +	ln -fs ../network.service \
> > +		$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/network.service
> > +endef
> >  endif
> >
> >  ifeq ($(BR2_PACKAGE_SYSTEMD_TIMESYNCD),y)
> > @@ -131,11 +138,6 @@ define SYSTEMD_INSTALL_INIT_HOOK
> >  	ln -fs ../../../lib/systemd/system/multi-user.target $(TARGET_DIR)/etc/systemd/system/default.target
> >  endef
> >
> > -define SYSTEMD_INSTALL_TTY_HOOK
> > -	rm -f $(TARGET_DIR)/etc/systemd/system/getty.target.wants/getty at tty1.service
> > -	ln -fs ../../../../lib/systemd/system/serial-getty at .service $(TARGET_DIR)/etc/systemd/system/getty.target.wants/serial-getty@$(BR2_TARGET_GENERIC_GETTY_PORT).service
> > -endef
> > -
> >  define SYSTEMD_INSTALL_MACHINEID_HOOK
> >  	touch $(TARGET_DIR)/etc/machine-id
> >  endef
> > @@ -145,28 +147,26 @@ define SYSTEMD_SANITIZE_PATH_IN_UNITS
> >  		-exec $(SED) 's,$(HOST_DIR),,g' {} \;
> >  endef
> >
> > -define SYSTEMD_INSTALL_NETWORK_HOOK
> > -	$(INSTALL) -D -m 644 package/systemd/network.service \
> > -		$(TARGET_DIR)/etc/systemd/system/network.service
> > -	mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
> > -	ln -fs ../network.service \
> > -		$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/network.service
> > -endef
> > -
> >  SYSTEMD_POST_INSTALL_TARGET_HOOKS += \
> >  	SYSTEMD_INSTALL_INIT_HOOK \
> >  	SYSTEMD_INSTALL_TTY_HOOK \
>
>  This line should be removed as well.
Of course! Silly me... Will resend.
>  Otherwise, looks good to me.
Thanks for the review!

Best regards,
ELB

      reply	other threads:[~2014-06-23  9:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-21 20:50 [Buildroot] [Patch v2 1/1] systemd: rework network/tty units installation Eric Le Bihan
2014-06-23  5:53 ` Arnout Vandecappelle
2014-06-23  9:43   ` Eric Le Bihan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140623094359.GA2439@ned \
    --to=eric.le.bihan.dev@free.fr \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox