The container is running as root, but be explicit anyway.

No functional change.

Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com>
---
CC: Anthony PERARD <anthony.per...@vates.tech>
CC: Stefano Stabellini <sstabell...@kernel.org>
CC: Marek Marczykowski-Górecki <marma...@invisiblethingslab.com>
---
 scripts/alpine-rootfs.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/alpine-rootfs.sh b/scripts/alpine-rootfs.sh
index c999b89dbcd8..6fa1d56775bc 100755
--- a/scripts/alpine-rootfs.sh
+++ b/scripts/alpine-rootfs.sh
@@ -84,7 +84,7 @@ cd /
     PATHS="bin etc home init lib mnt opt root sbin srv usr var"
     find $PATHS -print0
     echo -ne "dev\0proc\0run\0sys\0"
-} | cpio -0 -H newc -o | gzip > "${COPYDIR}/rootfs.cpio.gz"
+} | cpio -0 -R 0:0 -H newc -o | gzip > "${COPYDIR}/rootfs.cpio.gz"
 
 # Print the contents for the build log
 zcat "${COPYDIR}/rootfs.cpio.gz" | cpio -tv

base-commit: d7434697deec41ddf31a2f3d189dee75d4d2486f
-- 
2.39.5


Reply via email to