From 3ea215d6215bb3250fb4d810c8f78feaffb106d7 Mon Sep 17 00:00:00 2001 From: Marcel Ziswiler Date: Fri, 7 Jul 2017 16:18:15 +0200 Subject: genext3fs.sh: fix copying of extened file attributes As reported by our customer our current ext3 generation script lacks copying any extended file attributes as well e.g. as required for capabilities or ACLs. Reported-by: Felix Ruess Signed-off-by: Marcel Ziswiler Acked-by: Max Krummenacher --- recipes-images/images/files/library/genext3fs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-images/images/files/library/genext3fs.sh b/recipes-images/images/files/library/genext3fs.sh index 93c2b60..25f7a85 100755 --- a/recipes-images/images/files/library/genext3fs.sh +++ b/recipes-images/images/files/library/genext3fs.sh @@ -58,7 +58,7 @@ while [ "$MOUNTED" -eq "0" ] ; do MOUNTED=`mount | grep -c "$MOUNTPOINT"` done #extract rootfs into the file -sudo cp -rpP $SRCPATH/* $MOUNTPOINT +sudo cp -a $SRCPATH/* $MOUNTPOINT if [ "$?" -ne "0" ] ; then $ECHO -e "\033[1mCopying the rootfs failed.\033[0m" echo "Check for error messages from cp" -- cgit v1.2.3