Skip to content

Commit ce73395

Browse files
authored
Merge pull request #2466 from afbjorklund/fuse-grep
Add sudo when trying to read fuse.conf
2 parents c23d4fe + e78fe9c commit ce73395

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)