Closed martin-ejdestig closed 5 years ago
Still some verification left to do. (E.g. not exactly sure why secondary / did not show up before the udev-extraconf patch was added on RPI.)
OK, turns out this is due to the secondary partition being created first when a software update is performed. Should set labels on RPI as well for blacklisting to work. Perhaps do it after #316 tough since it changes so that both root partitions will always be there even before an update.
Make the second commit in a separate PR, please.
Will make it so pluggable mass storage devices are automatically mounted under /run/media/ when inserted.
Since PELUX has two root partitions for swupdate, one that is actually mounted at / and one that is not mounted at all, they need to be blacklisted from the script that is run when a mass storage device is detected. If it is not, the rootfs that is not / will be mounted under /run/media/. mount.sh in udev-extraconf is extended with the functionality to use UUID:s or labels to blacklist devices so that this can be reliable done in PELUX (using the platform1 and platform2 labels).
Still some verification left to do. (E.g. not exactly sure why secondary / did not show up before the udev-extraconf patch was added on RPI.)