This commit is contained in:
oiseauroch 2022-11-30 17:51:55 +01:00
parent 81776945bb
commit 928edeface

View File

@ -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/