Skip to content

Commit e78fe9c

Browse files
committed
Add sudo when trying to read fuse.conf
On some distributions this configuration was only readable by members in the "fuse" group, not by the general public. Signed-off-by: Anders F Björklund <[email protected]>
1 parent 118c249 commit e78fe9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/hostagent/requirements.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ A possible workaround is to run "apt-get install sshfs" in the guest.
111111
description: "fuse to \"allow_other\" as user",
112112
script: `#!/bin/bash
113113
set -eux -o pipefail
114-
if ! timeout 30s bash -c "until grep -q ^user_allow_other /etc/fuse*.conf; do sleep 3; done"; then
114+
if ! timeout 30s bash -c "until sudo grep -q ^user_allow_other /etc/fuse*.conf; do sleep 3; done"; then
115115
echo >&2 "/etc/fuse.conf (/etc/fuse3.conf) is not updated to contain \"user_allow_other\""
116116
exit 1
117117
fi

0 commit comments

Comments
 (0)