Project

General

Profile

Actions

Feature #1086

open

Mount USB stores by partition labels, if available

Added by Hammel 5 months ago.

Status:
New
Priority:
Immediate
Assignee:
Target version:
Start date:
23 Nov 2023
Due date:
% Done:

0%

Estimated time:
Severity:
03 - Medium

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.

No data to display

Actions

Also available in: Atom PDF