fix
This commit is contained in:
parent
81776945bb
commit
928edeface
|
@ -13,7 +13,8 @@ then
|
||||||
qemu-nbd --connect /dev/nbd$i $datadir/garage_data.qcow2
|
qemu-nbd --connect /dev/nbd$i $datadir/garage_data.qcow2
|
||||||
if [[ "$format" = "true" ]]
|
if [[ "$format" = "true" ]]
|
||||||
then
|
then
|
||||||
mkfs.ext4 /dev/nbd$i > /dev/null
|
echo "formatting /dev/nbd$i"
|
||||||
|
mkfs.ext4 /dev/nbd$i
|
||||||
fi
|
fi
|
||||||
mkdir -p $datadir/data
|
mkdir -p $datadir/data
|
||||||
mount /dev/nbd$i $datadir/data/
|
mount /dev/nbd$i $datadir/data/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user