Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/8] package/mender: update install of config files
Date: Wed, 15 Aug 2018 21:02:10 +0200	[thread overview]
Message-ID: <20180815210210.410ca497@windsurf> (raw)
In-Reply-To: <CADHdJwBemwZr-AJ+jSGhJem1g70xmWRFC4pb3ajctwFHTjYPeQ@mail.gmail.com>

Hello,

On Wed, 15 Aug 2018 20:48:27 +0200, Mirza Krak wrote:
> On Wed, Aug 15, 2018 at 7:41 PM, Thomas Petazzoni
> <thomas.petazzoni@bootlin.com> wrote:
> > Hello,
> >
> > On Wed, 15 Aug 2018 14:42:51 +0200, Mirza Krak wrote:
> >  
> >> > Do you know why tenant.conf was added in the current Mender packaging ?
> >> > Was it an old configuration file from previous Mender versions ?  
> >>
> >> This was something that we did deploy in our Yocto recipes (which
> >> might have been source of inspiration for the package in Buildroot),
> >> but it was never actually used for anything. There is an option in
> >> mender.conf for this, TenantToken.  
> >
> > Which is set to ?
> >
> > tenant.conf was the target of a symlink, created in the systemd unit
> > file:
> >
> > /bin/ln -sf /etc/mender/tenant.conf /var/lib/mender/authtentoken
> >
> > How does it work now ?  
> 
> Example:
> 
> /etc/mender/mender.conf
> {
>     TenantToken: "very long base64 encoded string"
> }
> 
> This is a configuration option that has to do with Hosted Mender,
> where you you need to set this for the devices to connect to the
> correct organization in a multi-tenant system.
> 
> I also looked up some details, the removal of tenant.conf usage (and
> /var/lib/mender/authtentoken) was in version 1.2.0, where it was
> switched to be an mender.conf option instead as the example above
> demonstrates. As the first version that was integrated in Buildroot
> was 1.4.0, the inclusion of tenant.conf and the creation of the
> symlink was not necessary.

OK, thanks a lot for this research. Please make this a separate patch
from the rest, with this very good explanation as the commit log.

> >> > The installation path has changed from /var/share, to /usr/share. Why ?  
> >>
> >> /var/share was incorrect, it has always been /usr/share.  
> >
> > So in its current state, the mender package in Buildroot doesn't work ?  
> 
> We need to define works. If we define works as that the mender.service
> is started successfully and the daemon is running, currently this does
> not work. And the path change from /var/share -> /usr/share is one of
> the fixes.

OK, so we want this as a separate patch as well, so that we can apply
it to master and backport to our LTS branch.

> The other one is a "sane" mender.conf file, currently there
> are only "template" values in the file installed that are not replaced
> with actually working values.

It is kind of expected that the mender.conf provided in Buildroot is a
template and needs to be replaced. I don't think it is really possible
to provide an out-of-the-box working solution for update systems. As
you explain below, it requires integration with the bootloader, a
specific organization of the partitions, etc.

> For Mender to actually be able to perform updates (works) it requires
> integration with U-boot and a specific partition layout, as it is A &
> B update solution. Will go in more detail on this in the other thread,
> with similar questions.

OK, thanks!

> > In your next iteration of the patches, could you please clearly
> > separate the bug fixes as separate patches. They should come first in
> > the series, before the improvements/cleanups.  
> 
> Yes, I can do that.

Thanks a lot!

I have to say I'm really pleased to have people with deep knowledge of
Mender taking care of its Buildroot packaging. This will definitely
help in making Mender more usable in the context of Buildroot.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2018-08-15 19:02 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-14 23:13 [Buildroot] [PATCH 0/8] various improvements to package/mender Mirza Krak
2018-08-14 23:13 ` [Buildroot] [PATCH 1/8] package/mender: update legal info Mirza Krak
2018-08-14 23:32   ` Arnout Vandecappelle
2018-08-15  7:37     ` Mirza Krak
2018-08-16 15:36       ` Arnout Vandecappelle
2018-08-16 19:59         ` Mirza Krak
2018-08-16 20:18         ` Mirza Krak
2018-08-17  3:48           ` Baruch Siach
2018-08-17  6:53             ` Mirza Krak
2018-08-14 23:13 ` [Buildroot] [PATCH 2/8] package/mender: update install of config files Mirza Krak
2018-08-15 12:31   ` Thomas Petazzoni
2018-08-15 12:42     ` Mirza Krak
2018-08-15 17:41       ` Thomas Petazzoni
2018-08-15 18:48         ` Mirza Krak
2018-08-15 19:02           ` Thomas Petazzoni [this message]
2018-08-14 23:13 ` [Buildroot] [PATCH 3/8] package/mender: add dep on BR2_PACKAGE_UBOOT_TOOLS_FWPRINTENV Mirza Krak
2018-08-15  5:08   ` Baruch Siach
2018-08-15  7:21     ` Mirza Krak
2018-08-14 23:13 ` [Buildroot] [PATCH 4/8] package/mender: add BR2_PACKAGE_MENDER_ARTIFACT_NAME option Mirza Krak
2018-08-15  5:10   ` Baruch Siach
2018-08-15  7:23     ` Mirza Krak
2018-08-15 11:53   ` Thomas Petazzoni
2018-08-15 12:23     ` Mirza Krak
2018-08-14 23:13 ` [Buildroot] [PATCH 5/8] package/mender: add BR2_PACKAGE_MENDER_DEVICE_TYPE option Mirza Krak
2018-08-15 11:55   ` Thomas Petazzoni
2018-08-15 12:26     ` Mirza Krak
2018-08-15 12:42       ` Thomas Petazzoni
2018-08-15 12:46         ` Mirza Krak
2018-08-15 17:47           ` Thomas Petazzoni
2018-08-15 19:41             ` Mirza Krak
2018-08-14 23:13 ` [Buildroot] [PATCH 6/8] package/mender: populate the mender.conf template Mirza Krak
2018-08-15 11:56   ` Thomas Petazzoni
2018-08-15 12:27     ` Mirza Krak
2018-08-14 23:13 ` [Buildroot] [PATCH 7/8] package/mender: select BR2_PACKAGE_CA_CERTIFICATES Mirza Krak
2018-08-15 11:57   ` Thomas Petazzoni
2018-08-15 12:28     ` Mirza Krak
2018-08-14 23:13 ` [Buildroot] [PATCH 8/8] package/mender: set version in go linker Mirza Krak
2018-08-15 11:58   ` Thomas Petazzoni
2018-08-15 12:32     ` Mirza Krak
2018-08-15 12:43       ` Thomas Petazzoni

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=20180815210210.410ca497@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --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