mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-11-29 03:48:23 +08:00
15 lines
313 B
Bash
Executable File
15 lines
313 B
Bash
Executable File
#!/bin/sh
|
|
set -x
|
|
|
|
BASEPATH="/tmp"
|
|
|
|
for x in $(seq -w 2)
|
|
do
|
|
FILEPATH="${BASEPATH}/mergerfs-${x}.img"
|
|
MOUNTPOINT="${BASEPATH}/mergerfs-${x}"
|
|
truncate -s 1G "${FILEPATH}"
|
|
mkdir -p "${MOUNTPOINT}"
|
|
mkfs.ext4 -m0 -L "mergerfs${x}" "${FILEPATH}"
|
|
sudo mount "${FILEPATH}" "${MOUNTPOINT}"
|
|
done
|