<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/poky.git/meta/recipes-core/volatile-binds, branch styhead-5.1.3</title>
<subtitle>Mirror of git.yoctoproject.org/poky</subtitle>
<id>https://git.enea.com/cgit/linux/poky.git/atom?h=styhead-5.1.3</id>
<link rel='self' href='https://git.enea.com/cgit/linux/poky.git/atom?h=styhead-5.1.3'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/'/>
<updated>2024-07-18T16:21:39+00:00</updated>
<entry>
<title>volatile-binds: Remove workdir if OverlayFS fails</title>
<updated>2024-07-18T16:21:39+00:00</updated>
<author>
<name>Ricardo Simoes</name>
<email>ricardo.simoes@pt.bosch.com</email>
</author>
<published>2024-07-18T06:46:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=cf648b0d28b5d583326dac27fb4652202e1d7457'/>
<id>urn:sha1:cf648b0d28b5d583326dac27fb4652202e1d7457</id>
<content type='text'>
To fulfill OverlayFS workdir requirements, the mount-copybind script
creates a workdir. But if the mount operation fails for any reason,
the workdir is left there.

Then, subsequent runs of mount-copybind will again try to
create the directory and pollute system logs with failed mkdir error
messages.

This commit mitigates the problem by unconditionally removing workdir
if the OverlayFS is not used or fails to run.

(From OE-Core rev: 7872edbb33024fc710ac683eaef5635b89a1b994)

Signed-off-by: Ricardo Simoes &lt;ricardo.simoes@pt.bosch.com&gt;
Signed-off-by: Mark Jonas &lt;mark.jonas@de.bosch.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>volatile-binds: Do not create workdir if OverlayFS is disabled</title>
<updated>2024-07-18T16:21:39+00:00</updated>
<author>
<name>Ricardo Simoes</name>
<email>ricardo.simoes@pt.bosch.com</email>
</author>
<published>2024-07-18T06:46:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=c32490b139d99712d49af4948b2863fd5100135b'/>
<id>urn:sha1:c32490b139d99712d49af4948b2863fd5100135b</id>
<content type='text'>
When the mountpoint parameter is a directory, the mount-copybind will
first try to use OverlayFS. Because of that, it needs to create the
OverlayFS workdir (determined by the overlay_workdir).

But if the environment variable MOUNT_COPYBIND_AVOID_OVERLAYFS is set
to "1", the script uses bind mount. In that case, the overlay_workdir
is useless, leaving the spec parent directory in a dirty state.

This commit changes mount-copybind so that the overlay_workdir is only
created when MOUNT_COPYBIND_AVOID_OVERLAYFS is not set to 1.

(From OE-Core rev: 323765607f262b5fea0f19e8a05aeffe5076235a)

Signed-off-by: Ricardo Simoes &lt;ricardo.simoes@pt.bosch.com&gt;
Signed-off-by: Mark Jonas &lt;mark.jonas@de.bosch.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>recipes: Switch away from S = WORKDIR</title>
<updated>2024-05-21T11:08:04+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2024-05-01T21:52:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=d6ae8d2004f8ac3aab4571e0077d406b2d19b542'/>
<id>urn:sha1:d6ae8d2004f8ac3aab4571e0077d406b2d19b542</id>
<content type='text'>
Where recipes use S = ${WORKDIR}, change them to set UNPACKDIR to
a subdir of WORKDIR and make S point at this instead.

I've chosen not to force S into any standard UNPACKDIR we may pick in
future just so the S = UNPACKDIR case is clearly visible by the
directory naming under WORKDIR as that should aid usability.

(From OE-Core rev: d9328e3b0b062f0621de3d114584b44f384a1c02)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>volatile-binds: Calculate the name of the /var/lib service</title>
<updated>2023-10-30T08:50:46+00:00</updated>
<author>
<name>Stéphane Veyret</name>
<email>sveyret@gmail.com</email>
</author>
<published>2023-08-28T17:52:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=494a25d861d72c662c25cfee3a388ead71992bdf'/>
<id>urn:sha1:494a25d861d72c662c25cfee3a388ead71992bdf</id>
<content type='text'>
By default, /var/lib is bind mounted on /var/volatile/lib. If this is
the case, the recipe adds conditions on systemd-random-seed in the
service file mounting it. But as the VOLATILE_BINDS may be modified,
/var/lib may be mounted elsewhere, for example in /persistent/var/lib.
In this case, the conditions are not set because the service file name
does not match expected one.
This patch automatically records the name of the service mounting
/var/lib, if any, in order to set the condition in the appropriate file.

(From OE-Core rev: 66f0c2a1678cb69cf8d50372b0592c55e2dc3e3c)

Signed-off-by: Stéphane Veyret &lt;sveyret@gmail.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>volatile-binds: Allow creation of subdirectories</title>
<updated>2023-10-30T08:50:46+00:00</updated>
<author>
<name>Stéphane Veyret</name>
<email>sveyret@gmail.com</email>
</author>
<published>2023-08-27T16:41:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=d6134c9f97d9ac062471a870c70a3f1d1f3a5959'/>
<id>urn:sha1:d6134c9f97d9ac062471a870c70a3f1d1f3a5959</id>
<content type='text'>
The mount-copybind script will create the parent directory of the bind
mount if it does not exist. But actually, if this is the case, the
service will not even start because of the ConditionPathIsReadWrite.
This patch adds a "or" condition to allow the service to start also if
the parent directory of the bind mount does not exist.

(From OE-Core rev: 1ca031b77546056ca1994469b0f2e93ea2018edf)

Signed-off-by: Stéphane Veyret &lt;sveyret@gmail.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>volatile-binds: Remove TimeoutSec and allow DefaultTimeoutSec to be used</title>
<updated>2022-04-30T21:00:20+00:00</updated>
<author>
<name>Portia</name>
<email>stephensportia@gmail.com</email>
</author>
<published>2022-04-29T07:34:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=9e556960421c8bbe8851d9810352a5b4bd3b50df'/>
<id>urn:sha1:9e556960421c8bbe8851d9810352a5b4bd3b50df</id>
<content type='text'>
Remove setting TimeoutSec and allow the DefaultTimeSec to be set for the
volatile-binds services.

(From OE-Core rev: 86aea324e423ce5f411a21afa18356339e3545a8)

Signed-off-by: Portia Stephens &lt;stephensportia@gmail.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>volatile-binds: Change DefaultDependencies from false to no</title>
<updated>2022-04-30T21:00:20+00:00</updated>
<author>
<name>Portia</name>
<email>stephensportia@gmail.com</email>
</author>
<published>2022-04-29T07:34:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=892b126ef4dcbe28f3fb9e648f19adf2612b349c'/>
<id>urn:sha1:892b126ef4dcbe28f3fb9e648f19adf2612b349c</id>
<content type='text'>
The systemd-unit parameter DefaultDependencies changed from true/false
to yes/no. This changed in systemd in v242.

(From OE-Core rev: add4dcb03dc7b034253db05f0023cb97cab8b26d)

Signed-off-by: Portia Stephens &lt;stephensportia@gmail.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>volatile-binds: add recipe variable to allow disabling OverlayFS</title>
<updated>2022-03-29T14:59:29+00:00</updated>
<author>
<name>Luca Boccassi</name>
<email>luca.boccassi@microsoft.com</email>
</author>
<published>2022-03-28T15:26:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=259c30621f8b2072fc4878c210d2ddadbdea91e1'/>
<id>urn:sha1:259c30621f8b2072fc4878c210d2ddadbdea91e1</id>
<content type='text'>
Use the new MOUNT_COPYBIND_AVOID_OVERLAYFS flag provided by mount-copybind.
When SELinux is enabled, processes accessing OverlayFS mounts will get a denial
if the process setting up the mount doesn't have all the permissions that
the accessor has.

(From OE-Core rev: 6002bdc77643c363a8326bf163baecba8b36e3e0)

Signed-off-by: Luca Boccassi &lt;luca.boccassi@microsoft.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>mount-copybind: add MOUNT_COPYBIND_AVOID_OVERLAYFS env var to skip OverlayFS</title>
<updated>2022-03-26T09:33:32+00:00</updated>
<author>
<name>Luca Boccassi</name>
<email>luca.boccassi@microsoft.com</email>
</author>
<published>2022-03-25T18:40:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=52cad1fe64c413290c3679f977292ca3b3c30d29'/>
<id>urn:sha1:52cad1fe64c413290c3679f977292ca3b3c30d29</id>
<content type='text'>
In some cases we don't want to even attempt to set up OverlayFS, for
example because SELinux in enforcing mode would kill the process
attempting to use the mount. See:

https://lore.kernel.org/all/CA+FmFJBDwt52Z-dVGfuUcnRMiMtGPhK4cCQJ=J_fg0r3x-b6ng@mail.gmail.com/T/#mef98aa406324096d1889d3d467251f30456f403c

If MOUNT_COPYBIND_AVOID_OVERLAYFS=1 is set, skip directly to copy and
bind mount.

(From OE-Core rev: a8e7dca69054798b1c9843a0de889cef3e261c4f)

Signed-off-by: Luca Boccassi &lt;luca.boccassi@microsoft.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>mount-copybind: fix shellcheck warning</title>
<updated>2022-03-26T09:33:32+00:00</updated>
<author>
<name>Luca Boccassi</name>
<email>bluca@debian.org</email>
</author>
<published>2022-03-25T18:40:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=23ef8946410d539d85fcbdaf818ce01e4a658716'/>
<id>urn:sha1:23ef8946410d539d85fcbdaf818ce01e4a658716</id>
<content type='text'>
$ shellcheck meta/recipes-core/volatile-binds/files/mount-copybind

In meta/recipes-core/volatile-binds/files/mount-copybind line 54:
            mountcontext=",rootcontext=$(matchpathcon -n $mountpoint)"
                                                         ^---------^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean:
            mountcontext=",rootcontext=$(matchpathcon -n "$mountpoint")"

For more information:
  https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...

(From OE-Core rev: 56c7962a6c31acfe0e118f713954aeafd7e2d9c0)

Signed-off-by: Luca Boccassi &lt;luca.boccassi@microsoft.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
</feed>
