From 8f0e5af02a1d9145fcfeb1ecee094a5078fa84bd Mon Sep 17 00:00:00 2001 From: Mhd Sulhan Date: Sat, 21 Nov 2015 13:18:56 +0700 Subject: scripts/rootfs.sh: set owner and group of copied file to root. --- scripts/rootfs.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/rootfs.sh b/scripts/rootfs.sh index 377122b..000beda 100755 --- a/scripts/rootfs.sh +++ b/scripts/rootfs.sh @@ -56,8 +56,10 @@ rootfs_copy() { echo " from $k to $FILES[$k]" if [ -f $k ]; then cp $k $FILES[$k] + chown root:root $FILES[$k] elif [ -d $k ]; then cp -r $k $FILES[$k] + chown -R root:root $FILES[$k] fi done } -- cgit v1.3