Signed-off-by: Denys Dmytriyenko <[email protected]>
Suggested-by: Andreas Dannenberg <[email protected]>
---
 setup-targetfs-nfs.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/setup-targetfs-nfs.sh b/setup-targetfs-nfs.sh
index 60817ca..b6f679f 100644
--- a/setup-targetfs-nfs.sh
+++ b/setup-targetfs-nfs.sh
@@ -80,19 +80,20 @@ extract_fs() {
     done
 
     me=`whoami`
+    my_group=`id -gn $me`
     sudo mkdir -p $1
     check_status
     sudo tar xJf $cwd/../filesystem/$fstar -C $1
     check_status
-    sudo chown $me:$me $1
+    sudo chown $me:$my_group $1
     check_status
-    sudo chown -R $me:$me $1/home $1/usr $1/etc $1/lib $1/boot
+    sudo chown -R $me:$my_group $1/home $1/usr $1/etc $1/lib $1/boot
     check_status
 
     # Opt isn't a standard Linux directory. First make sure it exist.
     if [ -d $1/opt ];
     then
-            sudo chown -R $me:$me $1/opt
+            sudo chown -R $me:$my_group $1/opt
             check_status
     fi
 
-- 
2.7.4

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to