22 lines
324 B
Bash
Executable File
22 lines
324 B
Bash
Executable File
#!/bin/bash
|
|
|
|
FSPATH="/mnt"
|
|
uuid=3d3a0763-4dfe-41e6-93c1-8c791ec98176
|
|
|
|
cd "/sys/fs/bcachefs/${uuid}/options" || exit 1
|
|
echo -n "bcachefs_options,fspath=$FSPATH,uuid=$uuid "
|
|
FIRST=1
|
|
for i in *
|
|
do
|
|
if [[ $FIRST == 1 ]]
|
|
then
|
|
FIRST=
|
|
else
|
|
echo -n ,
|
|
fi
|
|
|
|
echo -n "${i}=\"$(cat "$i")\""
|
|
done
|
|
|
|
echo
|