From: "MOESSBAUER, Felix" <felix.moessbauer@siemens.com>
To: "cip-dev@lists.cip-project.org" <cip-dev@lists.cip-project.org>,
"Kiszka, Jan" <jan.kiszka@siemens.com>
Cc: "shivanand.kunijadar@toshiba-tsip.com"
<shivanand.kunijadar@toshiba-tsip.com>,
"quirin.gylstorff@siemens.com" <quirin.gylstorff@siemens.com>,
"isar-users@googlegroups.com" <isar-users@googlegroups.com>
Subject: Re: [isar-cip-core][RFC 1/2] copy and symlink dpkg db to ro-rootfs
Date: Mon, 19 Feb 2024 11:19:31 +0000 [thread overview]
Message-ID: <aa3c14c1ba63829ed2ca07a600777498b0e7e1c7.camel@siemens.com> (raw)
In-Reply-To: <464bd7dc-85a8-4fd5-8452-256c02f60ff4@siemens.com>
On Tue, 2024-02-13 at 11:33 +0100, Jan Kiszka wrote:
> > > > image_configure_fstab() {
> > > > sudo tee '${IMAGE_ROOTFS}/etc/fstab' << EOF
> > > > # Begin /etc/fstab
> > > > diff --git a/recipes-core/cip-read-only-rootfs/cip-read-only-
> > > > rootfs_0.1.bb b/recipes-core/cip-read-only-rootfs/cip-read-
> > > > only-
> > > > rootfs_0.1.bb
> > > > new file mode 100644
> > > > index 0000000..76453ab
> > > > --- /dev/null
> > > > +++ b/recipes-core/cip-read-only-rootfs/cip-read-only-
> > > > rootfs_0.1.bb
> > > > @@ -0,0 +1,26 @@
> > > > +#
> > > > +# CIP Core, generic profile
> > > > +#
> > > > +# Copyright (c) Siemens AG, 2024
> > > > +#
> > > > +# Authors:
> > > > +# Felix Moessbauer <felix.moessbauer@siemens.com>
> > > > +#
> > > > +# SPDX-License-Identifier: MIT
> > > > +
> > > > +# Note: This requires debhelper-compat 13, which limits it to
> > > > bookworm
> > > > +
> > > > +inherit dpkg
> > > > +
> > > > +SRC_URI = " \
> > > > + file://${BPN}.tmpfiles \
> > > > + file://control"
> > > > +
> > > > +do_prepare_build[cleandirs] += "${S}/debian"
> > > > +do_prepare_build() {
> > > > + deb_debianize
> > > > + rm -f ${S}/debian/compat
> > > > + cp ${WORKDIR}/control \
> > > > + ${WORKDIR}/${BPN}.tmpfiles \
> > > > + ${S}/debian/
> > >
> > > dpkg-raw wouldn't have simplified this? I think even compat is
> > > not
> > > customizable.
> >
> > DPKG raw in general is only useful for a trivial copy of files into
> > the
> > rootfs. Here, we need the debhelper logic to process the
> > tmpfiles.d.
> > Also, we need to update the compat mode so that these debhelpers
> > become
> > active. I don't see any value in mixing this with dpkg-raw, as most
> > parts would need to be written manually anyways.
> >
>
> With [1] (granted, not yet upstream), this would simply be
This is already merged into ISAR-next (as f1b8679), but as we only
reference ISAR-master in CIP, we need to wait for that to get
integrated there as well. I can prepare everything, but still we need
to wait for the ISAR update.
Putting the ISAR list in CC.
Felix
>
> inherit dpkg-raw
>
> DPKG_ARCH = "all"
>
> SRC_URI = "file://${BPN}.tmpfiles"
>
> do_install() {
> cp ${WORKDIR}/${BPN}.tmpfiles ${S}/debian/
> }
>
>
> The whole control file would become obsolete.
>
> Jan
>
> [1]
> https://groups.google.com/d/msgid/isar-users/20240201101236.3555681-1-Quirin.Gylstorff%40siemens.com
>
--
Siemens AG, Technology
Linux Expert Center
next parent reply other threads:[~2024-02-19 11:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20240130115648.311177-1-felix.moessbauer@siemens.com>
[not found] ` <20240130115648.311177-2-felix.moessbauer@siemens.com>
[not found] ` <29de90aa-1a30-4f17-9538-e6a2334bc343@siemens.com>
[not found] ` <cd3b8b6b9d762cda263489202a5c16ecbb3fe68a.camel@siemens.com>
[not found] ` <464bd7dc-85a8-4fd5-8452-256c02f60ff4@siemens.com>
2024-02-19 11:19 ` MOESSBAUER, Felix [this message]
2024-02-19 11:35 ` Jan Kiszka
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=aa3c14c1ba63829ed2ca07a600777498b0e7e1c7.camel@siemens.com \
--to=felix.moessbauer@siemens.com \
--cc=cip-dev@lists.cip-project.org \
--cc=isar-users@googlegroups.com \
--cc=jan.kiszka@siemens.com \
--cc=quirin.gylstorff@siemens.com \
--cc=shivanand.kunijadar@toshiba-tsip.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