<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/poky.git/meta/recipes-core/udev/udev-extraconf, 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-11-26T13:37:09+00:00</updated>
<entry>
<title>udev-extraconf: fix network.sh script did not configure hotplugged interfaces</title>
<updated>2024-11-26T13:37:09+00:00</updated>
<author>
<name>Regis Dargent</name>
<email>regis.dargent@gmail.com</email>
</author>
<published>2024-10-18T13:32:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=30f687033c126801776a217d1f66cb2ec6164111'/>
<id>urn:sha1:30f687033c126801776a217d1f66cb2ec6164111</id>
<content type='text'>
Udev script network.sh is called when a new ethernet interface is plugged (eg. USB).
Due to some (old) missing files, this script does nothing, instead of configuring the
interfaces with ifup.
I just commented the corresponding lines to allow the script to reach the part where
it calls ifup.

(From OE-Core rev: 55069a5f68ade552e3c45333d441dc2d18753476)

Signed-off-by: Regis Dargent &lt;regis.dargent@gmail.com&gt;

Fixes [YOCTO 15616]

network.sh relies on (long) missing files (eg. /etc/network/options,
/etc/init.d/network) to decide if it should configure the new network
interface (ifup) or put its name in /etc/udev_network_queue for future
initialization by /etc/init.d/network service.
The actual result was that the new hotplugged interface was never
automatically configured.
Removing the obsolete tests allows the script to do its intended job.

Signed-off-by: Mathieu Dubois-Briand &lt;mathieu.dubois-briand@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
(cherry picked from commit 160f7139172ffdf510a0d7d4e85f7fbaac7fd000)
Signed-off-by: Steve Sakoman &lt;steve@sakoman.com&gt;
</content>
</entry>
<entry>
<title>udev-extraconf: Add collect flag to mount</title>
<updated>2024-09-10T12:05:00+00:00</updated>
<author>
<name>Colin McAllister</name>
<email>colinmca242@gmail.com</email>
</author>
<published>2024-09-06T15:21:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=8c820896b8786fada1125f8c945f4469bd5c5611'/>
<id>urn:sha1:8c820896b8786fada1125f8c945f4469bd5c5611</id>
<content type='text'>
Adds extra "--collect" flag to the mount command within
automount_systemd. This is intended to fix an observed deadlock after
rapidly inserting and removing external media. This is because if the
mount command fails, the transient mount will enter a failed state. The
next time the media is inserted, automount_systemd bails because the
first consition finds that the file path for the failed transient mount
still exists. This leaves the external media unmounted and cannot be
mounted until the mount is fixed via systemctl or the device is
rebooted.

Adding "--collect" ensures that the transient mount is cleaned up after
entering a failed state, which ensures that the media can still be
mounted when it's re-inserted.

(From OE-Core rev: f0cda74d73eb8c14cd6f695f514108f1e94984a6)

Signed-off-by: Colin McAllister &lt;colinmca242@gmail.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>udev-extraconf: fix unmount directories containing octal-escaped chars</title>
<updated>2024-01-26T16:06:29+00:00</updated>
<author>
<name>Jonathan GUILLOT</name>
<email>jonathan@joggee.fr</email>
</author>
<published>2024-01-24T13:29:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=b219e0c9ffeb1b9e7c7aa0cf9a7156fe8dd17fa9'/>
<id>urn:sha1:b219e0c9ffeb1b9e7c7aa0cf9a7156fe8dd17fa9</id>
<content type='text'>
USB devices are auto-mounted in a directory named like theirs labels.
Special characters like whitespace are octal-escaped in /proc/mounts
output. Using directly this output file as an argument for umount failed
and the mount directory can't be removed as still busy.
Using printf allows these special characters to be unescaped.

(From OE-Core rev: 37f17625d931a06888388682dc2b1f5a2d298125)

Signed-off-by: Jonathan GUILLOT &lt;jonathan@joggee.fr&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>udev-extraconf: mount.sh: check if filesystem is supported before mounting</title>
<updated>2023-11-10T17:44:27+00:00</updated>
<author>
<name>Lukas Funke</name>
<email>lukas.funke@weidmueller.com</email>
</author>
<published>2023-11-08T09:40:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=9b2d4952fe22bed8dc2d585e516157e968113951'/>
<id>urn:sha1:9b2d4952fe22bed8dc2d585e516157e968113951</id>
<content type='text'>
Check if the filesystem is supported by the kernel before trying to
mount it. Systemd-mount will mount the directories asynchronously
resulting in stale directories if the devices filesystem is not
supported.

(From OE-Core rev: 695e0a41e3c1cb47484605934a57e7df591bd19f)

Signed-off-by: Lukas Funke &lt;lukas.funke@weidmueller.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>udev-extraconf:mount.sh: fix a umount issue</title>
<updated>2022-07-23T12:55:26+00:00</updated>
<author>
<name>Ming Liu</name>
<email>liu.ming50@gmail.com</email>
</author>
<published>2022-07-20T10:10:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=8a6f8570922594c45140489a78b5e79268c2ab0a'/>
<id>urn:sha1:8a6f8570922594c45140489a78b5e79268c2ab0a</id>
<content type='text'>
Only touching /tmp/.automount-$name is not good enough, it must contain
the mount name, otherwise umount could not get the path from it.

(From OE-Core rev: ccea69032329f3ba43c727d9eb71b1d063b89824)

Signed-off-by: Ming Liu &lt;liu.ming50@gmail.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>udev-extraconf:mount.sh: fix path mismatching issues</title>
<updated>2022-07-15T11:33:21+00:00</updated>
<author>
<name>Ming Liu</name>
<email>liu.ming50@gmail.com</email>
</author>
<published>2022-07-14T15:47:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=04256e89e61e1949675300f3011da95218abe692'/>
<id>urn:sha1:04256e89e61e1949675300f3011da95218abe692</id>
<content type='text'>
Since commit f077befd5f36ad88623aaf6a38b1a837ecb18650:
[ udev-extraconf: let automount base directory configurable ]

the mount base directory was configurable, we need drop 'run-media'
usage as well, change to figure it out from MOUNT_BASE.

Also 'get_label_name' function needs to be called ealier in
automount_systemd before checking '/tmp/.automount-$name', otherwise
they would never match.

(From OE-Core rev: c013b33162546fb5bd4bcc1daac75aa65d0be1a3)

(From OE-Core rev: 7ed210054b3e253d5a67075bb9d4768d1661bef1)

Signed-off-by: Ming Liu &lt;liu.ming50@gmail.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>udev-extraconf: fix some systemd automount issues</title>
<updated>2022-06-27T22:11:12+00:00</updated>
<author>
<name>Ming Liu</name>
<email>liu.ming50@gmail.com</email>
</author>
<published>2022-06-23T19:01:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=8b428691368b2cfe8256a81f506a278e01d09f8c'/>
<id>urn:sha1:8b428691368b2cfe8256a81f506a278e01d09f8c</id>
<content type='text'>
The '.include' syntax has been dropped from latest systemd releases,
we need drop the systemd-udevd.service here, introduce a postinst
function to add "MountFlags=shared" to systemd-udevd.service.

Also lsblk binary is being called in mount.sh automount_systemd
function, add it to RDEPENDS.

(From OE-Core rev: 356520d60b9429c6f62124821e42468ff2b7b1d6)

Signed-off-by: Ming Liu &lt;liu.ming50@gmail.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>udev-extraconf/mount.sh: ignore lvm in automount</title>
<updated>2022-06-21T17:44:27+00:00</updated>
<author>
<name>Muhammad Hamza</name>
<email>Muhammad_Hamza@mentor.com</email>
</author>
<published>2022-06-21T05:09:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=69ff043e625a3cead8b8d653e08c8084bf6eaebf'/>
<id>urn:sha1:69ff043e625a3cead8b8d653e08c8084bf6eaebf</id>
<content type='text'>
Failure message is shown in boot logs when trying to
mount lvm as automounter does not handle cases where
lvm is mounted. This simply skips lvm while automounting
to avoid failure message in boot logs.

(From OE-Core rev: b1d18072ed9a8b0bca0f20f8e5deefa73ab6acbe)

Signed-off-by: Ansar Rasool &lt;ansar_rasool@mentor.com&gt;
Signed-off-by: Muhammad Hamza &lt;muhammad_hamza@mentor.com&gt;
Signed-off-by: Luca Ceresoli &lt;luca.ceresoli@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>udev-extraconf: force systemd-udevd to use shared MountFlags</title>
<updated>2022-06-21T17:44:27+00:00</updated>
<author>
<name>Muhammad Hamza</name>
<email>Muhammad_Hamza@mentor.com</email>
</author>
<published>2022-06-20T13:52:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=b4b004641a42dd6e5c8ae5e66c451f49f09282d1'/>
<id>urn:sha1:b4b004641a42dd6e5c8ae5e66c451f49f09282d1</id>
<content type='text'>
Automounting does not work cleanly in case systemd as well as
udev rules are being used simultaneously and in most cases
race conditions and unknown behavior can come up.
In case we're running on top of systemd we need to make sure
that systemd-udevd knows that udev is in play as well and
mounting should be done using shared flags. Also as we're
using mount from sources other than systemd-mount in current
scripts this is the most manageable fix to automounting
problems.

(From OE-Core rev: 1e770416b4c9a0468404fb64d55114d93e84763b)

Signed-off-by: Awais Belal &lt;awais_belal@mentor.com&gt;
Signed-off-by: Muhammad Hamza &lt;muhammad_hamza@mentor.com&gt;
Signed-off-by: Luca Ceresoli &lt;luca.ceresoli@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>udev-extraconf/mount.sh: only mount devices on hotplug</title>
<updated>2022-06-21T17:44:27+00:00</updated>
<author>
<name>Muhammad Hamza</name>
<email>Muhammad_Hamza@mentor.com</email>
</author>
<published>2022-06-20T13:17:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=97a4c50fa3ed5ffbe212e7eed25b4427bebd546e'/>
<id>urn:sha1:97a4c50fa3ed5ffbe212e7eed25b4427bebd546e</id>
<content type='text'>
fdisk from util-linux (2.31.1) and above allows the user to
manipulate an already mounted device. In order to achieve this
functionality it issues a BLKRRPART (block device re-read part)
ioctl and in response the kernel generates remove/change/add
events if the device is not mounted (manually unmounted etc)
which are caught and processed by udev. This causes our auto-mounter
to remount everything because it does not keep track and things
go out of control.
Differentiating between types of remove events such as the one
described above (generated by BLKRRPART) and one where the device
is physically plugged out is only possible using the DEVPATH variable
which is cleaned up only when the device is actually plugged-out.
This fixes the above anomaly by only mounting a device in add event
which is cleaned up properly (tmp cache deleted) in the remove event
or is not present in the tmp cache while making use of the DEVPATH
variable during the remove action.

(From OE-Core rev: 11a5e6c17535438ea1e7a8403ed260c8b3a22bc8)

Signed-off-by: Awais Belal &lt;awais_belal@mentor.com&gt;
Signed-off-by: Muhammad Hamza &lt;muhammad_hamza@mentor.com&gt;
Signed-off-by: Luca Ceresoli &lt;luca.ceresoli@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
</feed>
