Skip to content

Commit

Permalink
prevent long UNIX socket paths
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsander-souza committed Dec 1, 2023
1 parent 37b6046 commit 4166837
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/fuse-nbd
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function mount_part() {
mkdir -p "${DEV}"
nbdfuse "${DEV}" \
--command nbdkit -s nbd \
socket="$(pwd)"/qemu-img.sock \
socket="${TMP_DIR}"/qemu-img.sock \
--filter=partition partition="${PART}" &
retries=0
until [ -f "${DEV}/nbd" ]; do
Expand All @@ -66,7 +66,7 @@ function mount_part() {
esac
}

qemu-nbd --socket="$(pwd)"/qemu-img.sock \
qemu-nbd --socket="${TMP_DIR}"/qemu-img.sock \
--format="${IMG_FMT}" \
--shared=10 \
"${PACKER_OUTPUT}" &
Expand Down

0 comments on commit 4166837

Please sign in to comment.