Actions
Feature #1086
openMount USB stores by partition labels, if available
Start date:
23 Nov 2023
Due date:
% Done:
0%
Estimated time:
Severity:
02 - High
Description
For PiStore, the local USB devices should be mounted by their partition labels, if present.
This means adding a check using blkid for the label.
blkid /dev/sda1 | sed 's/^.*LABEL=//' | cut -f1 -d" " | sed 's/"//g'
This gets added to the findmount() function in blockhandler.sh. It should replace TARGET= or maybe be an additional MOUNT2 command, but only on PiSentry Systems.
Once this is done then the exportFS() in pistore:db.c can export the label-named directory instead of the device-named directory.
Actions