All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH WIP] package/systemd: fix paths to runtime utilities
Date: Thu, 8 Jun 2017 20:49:27 +0200	[thread overview]
Message-ID: <20170608184927.GA3058@scaer> (raw)
In-Reply-To: <CAFSsvmqKd7zVrMTDAGRjv8z0-RmzHfmsLNVP1TQDJZpKVeivZg@mail.gmail.com>

Adam, All,

On 2017-06-08 10:34 -0400, Adam Duskett spake thusly:
[--SNIP--]
> > -# Override path to kmod, used in kmod-static-nodes.service
> > +# Override paths to a few utilities needed at runtime, to
> > +# avoid finding those we would install in $(HOST_DIR).
> >  SYSTEMD_CONF_ENV = \
> >         CFLAGS="$(SYSTEMD_CFLAGS)" \
> > -       ac_cv_path_KMOD=/usr/bin/kmod
> > +       ac_cv_path_KILL=/usr/bin/kill \
> > +       ac_cv_path_KMOD=/usr/bin/kmod \
> > +       ac_cv_path_KEXEC=/usr/sbin/kexec \
> > +       ac_cv_path_SULOGIN=/usr/sbin/sulogin \
> These work fine.
> 
> > +       ac_cv_path_MOUNT=/usr/sbin/mount \
> > +       ac_cv_path_UMOUNT=/usr/sbin/umount
> This should be :
> ac_cv_path_MOUNT_PATH=/usr/bin/mount \
> ac_cv_path_UMOUNT_PATH=/usr/bin/umount
> 
> Why they decided that MOUNT and UMOUNT need to have _PATH
> in the variable name is beyond me.

Damn, indeed, I did not see it when looking at configure.ac...

> Also /bin/ instead of /sbin.

Yup, right.

> >  define SYSTEMD_RUN_INTLTOOLIZE
> >         cd $(@D) && $(HOST_DIR)/usr/bin/intltoolize --force --automake
> > @@ -182,8 +188,14 @@ endif
> >
> >  ifeq ($(BR2_PACKAGE_SYSTEMD_QUOTACHECK),y)
> >  SYSTEMD_CONF_OPTS += --enable-quotacheck
> > +SYSTEMD_CONF_ENV += \
> > +       ac_cv_path_QUOTAON=/usr/sbin/quotaon \
> > +       ac_cv_path_QUOTACHECK=/usr/sbin/quotacheck
> >  else
> >  SYSTEMD_CONF_OPTS += --disable-quotacheck
> > +SYSTEMD_CONF_ENV += \
> > +       ac_cv_path_QUOTAON=/.missing \
> > +       ac_cv_path_QUOTACHECK=/.missing
> >  endif
> >
> >  ifeq ($(BR2_PACKAGE_SYSTEMD_TMPFILES),y)
> > --
> > 2.11.0
> >
> 
> After I made the small changes above, the system booted just fine again!
> Thanks a ton for your help!

Thanks for testting! :-)

I'll re-spin a v2 with those changes.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

      reply	other threads:[~2017-06-08 18:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-07 22:08 [Buildroot] [PATCH WIP] package/systemd: fix paths to runtime utilities Yann E. MORIN
2017-06-08 14:34 ` Adam Duskett
2017-06-08 18:49   ` Yann E. MORIN [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=20170608184927.GA3058@scaer \
    --to=yann.morin.1998@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.