mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
initscripts: Add generic function to get the filesystem type of a volume
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org> Reviewed-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
5f04e70f74
commit
ed91103e22
@@ -883,3 +883,11 @@ running_on_oci() {
|
|||||||
# We are not running on OCI
|
# We are not running on OCI
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
volume_fs_type() {
|
||||||
|
if [ ! -d "${1}" ]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
stat -f --format="%T" ${1}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user