public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "vijaikumar....@gmail.com" <vijaikumar.kanagarajan@gmail.com>
To: isar-users <isar-users@googlegroups.com>
Subject: Re: image-postproc-extension.bbclass modifying /etc/os-release
Date: Wed, 10 Feb 2021 21:54:39 -0800 (PST)	[thread overview]
Message-ID: <0fa156df-7943-47ce-86a6-cf02fe5d4d0dn@googlegroups.com> (raw)
In-Reply-To: <20210210092248.GX20742@yssyq.m.ilbers.de>


[-- Attachment #1.1: Type: text/plain, Size: 4228 bytes --]

Hi Baurzhan,

On Wednesday, February 10, 2021 at 2:52:52 PM UTC+5:30 i...@radix50.net 
wrote:

> On Sun, Feb 07, 2021 at 12:31:23AM -0800, vijaikumar....@gmail.com wrote: 
> > > If we need to provide "something" that keeps modifying the 
> /etc/os-release 
> > > for backwards compatibility, do we want to keep the current "broken" 
> > > implementation? 
> > 
> > I would not suggest keeping it as it is. We know it is broken. Better to 
> > fix it. 
>
> I suggest to patch /usr/lib/os-release as the first step to preserve the 
> /etc/os-release symlink (we could provide a patch), then see whether we 
> want to 
> optionally provide base-files in Isar. 
>
>
> > > If we want to "fix" that implementation, then we can do it in a way 
> that 
> > > not only provides that backwards compatibility, but also to provides a 
> > > useful feature. The default would be not touching /etc/os-release and 
> one 
> > > recipe could provide (when requested with a flag) a package for 
> "managing" 
> > > /etc/os-release (assuming it can be somehow accomplished with 
> multiconfigs, 
> > > or be a mutually exclusive feature). 
> > > 
> > 
> > As Claudius previously mentioned, this might break caching. If the 
> > information is purely build-system related, should we try to put it in a 
> > package? Does this file need updates in the future? Well, from the 
> current 
> > standpoint, I don't see it needing updates. The data is only applicable 
> > when we build using ISAR. If hypothetically, we decided to recreate the 
> > distro with the cached apt-repo generated with ISAR using some other 
> tool, 
> > this info is not relevant. 
>
> Under "caching" I understand base-apt. Providing base-files in Isar 
> shouldn't 
> break base-apt. Isar-generated base-files would land in isar-apt. Updating 
> that 
> file again and again with every new build is a normal project lifecycle. 
>
>
> > That said, we need to understand from the community, what are the 
> real-life 
> > scenarios they are using this ISAR information in /etc/os-release for? I 
> am 
> > not personally using that info. If it is being used somewhere, we need 
> to 
> > know why? So that we know how costly it is to break backward 
> compatibility. 
> > Huge or none at all? 
>
> I only use it visually when I log into the target. 
>
>
> On Tue, Feb 09, 2021 at 11:32:30AM +0530, vijai kumar wrote: 
> > I do 
> > agree that the current way of changing the content of /etc/os-release 
> > is an error, since now we know that it belongs to base-files and its 
> > update makes that information disappear. 
>
> While I agree that patching os-release is not optimal, overwriting on 
> upgrade 
> being a bug or not depends IMHO on whether a downstream declares itself a 
> distro or not. If they don't, let Debian overwrite it -- it isn't an 
> Isar-generated image anymore. If they do, they should provide their own 
> base-files. 
>

Since ISAR is providing that information by default, and people use it based
on upstream trust, we should probably have that information in a way that it
is usable even after an upgrade. Or not provide it at all. I am more 
inclined to 
base-files approach here since we know that /etc/os-release is maintained 
by it.
Since providing another file is not the recommended way, as per Debian, we
should probably provide the isar information in /etc/os-release through 
custom
base-files in upstream isar for reference.

Do you feel it is a strong enough reason to have custom base-files in ISAR?

If so, I could try and send a patch for RFC sometime later.

Thanks,
Vijai Kumar K
 

>
>
> > Agreed. /etc/os-release is supposed to be extendable. And looks like 
> > there is no hard and fast rule which describes what is "OS 
> > information". It could be accomplished by modifying base-files. I 
> > would recommend ISAR support something similar to it instead of 
> > bringing in a new package to handle /etc/os-release, which by the way 
> > is redundant. 
>
> If this is about providing base-files in Isar, I'm open to the discussion. 
> A 
> modified package would be cleaner than patching the rootfs. That said, my 
> itch 
> isn't currently that strong to provide a patch :) . 
>
>
> With kind regards, 
> Baurzhan. 
>

[-- Attachment #1.2: Type: text/html, Size: 5094 bytes --]

  reply	other threads:[~2021-02-11  5:54 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-15 14:26 Silvano Cirujano Cuesta
2021-01-18 11:35 ` Silvano Cirujano Cuesta
2021-01-18 12:35   ` Claudius Heine
2021-01-18 14:52     ` Silvano Cirujano Cuesta
2021-01-19  8:25     ` Henning Schild
2021-01-19  8:33       ` Henning Schild
2021-01-19  8:50         ` Silvano Cirujano Cuesta
2021-01-19  9:22           ` Henning Schild
2021-01-19 10:37             ` Silvano Cirujano Cuesta
2021-01-22  8:52               ` Claudius Heine
2021-01-22  9:47                 ` Silvano Cirujano Cuesta
2021-01-22 10:33                   ` Claudius Heine
2021-01-22 11:36                     ` Silvano Cirujano Cuesta
2021-02-05 11:55                       ` vijaikumar....@gmail.com
2021-02-05 14:57                         ` Silvano Cirujano Cuesta
2021-02-07  9:02                           ` vijai kumar
2021-02-08  8:50                             ` Silvano Cirujano Cuesta
2021-02-09  6:02                               ` vijai kumar
2021-02-10  9:22                                 ` Baurzhan Ismagulov
2021-02-11  5:54                                   ` vijaikumar....@gmail.com [this message]
2021-02-11  8:49                                     ` Baurzhan Ismagulov
2021-02-11 10:34                                       ` vijaikumar....@gmail.com
2021-01-19  8:43       ` Silvano Cirujano Cuesta
2021-01-19  9:08         ` Henning Schild
2021-01-19  9:14           ` Henning Schild
2021-01-19  9:30           ` Silvano Cirujano Cuesta
2021-01-19  9:11   ` Claudius Heine
2021-01-19  8:43 ` Henning Schild
2021-01-19  9:03   ` Silvano Cirujano Cuesta
2021-01-19  9:38 ` Henning Schild
2021-02-08 17:20 ` Baurzhan Ismagulov

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=0fa156df-7943-47ce-86a6-cf02fe5d4d0dn@googlegroups.com \
    --to=vijaikumar.kanagarajan@gmail.com \
    --cc=isar-users@googlegroups.com \
    /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