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> |
||
|---|---|---|
| .. | ||
| packagegroup | ||
| udev | ||