fuse: Set UID and GID when performing FUSE tests.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 7 Dec 2010 17:16:20 +0000 (17:16 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 7 Dec 2010 17:16:52 +0000 (17:16 +0000)
This avoids breakage on Ubuntu.

fuse/test-fuse.sh

index 2c0aec5..6d2f0fe 100755 (executable)
@@ -99,7 +99,9 @@ $guestfish <<EOF
 EOF
 
 stage Mounting the filesystem
-$guestmount -a "$image" -m /dev/sda1 "$mp"
+$guestmount \
+    -a "$image" -m /dev/sda1 \
+    -o uid="$(id -u)" -o gid="$(id -g)" "$mp"
 # To debug guestmount, add this to the end of the preceding command:
 # -v -x & sleep 60