meta-digi/meta-digi-arm/recipes-core/udev/udev-extraconf
David Escalona a84d011f16 meta-digi-arm: udev: mount_digiparts: fix script for R/O systems
When the system runs as read-only with '/etc' overlayfs enabled, '/sbin/init' is not a symlink
to 'systemd', but '/sbin/init.orig' is. This causes the script to wrongly think than 'systemd'
is not being used. The outcome is that partitions are not being automatically mounted in R/O
systems running in mmc with '/etc' overlayfs enabled, as the specific '/usr/bin/systemd-mount'
binary needs to be invoked in these cases.

The proposed fix performs a second check with '/sbin/init.orig' to determine whether systemd is
being used or not. While on it, add an early check to determine if the partition is already
mounted to exit the script.

Signed-off-by: David Escalona <david.escalona@digi.com>
2023-07-27 10:13:50 +02:00
..
00-disable-sd.rules udev: disable uSD card mounting for the CCMP1 2023-05-11 09:25:29 +02:00
81-spi-spidev.rules udev-extraconf: fix udev rule to prevent spidev module autoload 2022-09-05 18:22:40 +02:00
99-ext-rtc-wakeup.rules udev: enable external RTC as wakeup source 2022-11-16 12:22:32 +01:00
automount.rules cc6ul: mount_digiparts.sh: fix mount of 'update' partition 2022-11-18 14:41:17 +01:00
blacklist.conf udev: move recipes into dynamic-layers for NXP 2022-05-04 14:01:05 +02:00
mount_digiparts.sh meta-digi-arm: udev: mount_digiparts: fix script for R/O systems 2023-07-27 10:13:50 +02:00