Skip to content

Commit

Permalink
docker: fix partition detection
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed May 30, 2024
1 parent 42ed855 commit 67cec18
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion install/docker/setup-scrypted-nvr-volume.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,17 @@ then
set +e

sync
mkfs -F -t ext4 "$BLOCK_DEVICE"1
PARTITION_DEVICE="$BLOCK_DEVICE"1
if [ ! -e "$PARTITION_DEVICE" ]
then
PARTITION_DEVICE="$BLOCK_DEVICE"p1
if [ ! -e "$PARTITION_DEVICE" ]
then
echo "Unable to determine block device partition from block device: $BLOCK_DEVICE"
exit 1
fi
fi
mkfs -F -t ext4 "$PARTITION_DEVICE"
sync

# parse/evaluate blkid line as env vars
Expand Down

0 comments on commit 67cec18

Please sign in to comment.