Browse code

Preserve extended attributes and acls on archlinux build

Failure to do this means that file capabilites are not preserved in the image.
Ping fails to work as a non-root user if cap_net_raw is capability is not set

Signed-off-by: Dan Griffin <dgriffin@peer1.com>

Dan Griffin authored on 2014/10/06 17:23:56
Showing 1 changed files
... ...
@@ -60,6 +60,6 @@ mknod -m 600 $DEV/initctl p
60 60
 mknod -m 666 $DEV/ptmx c 5 2
61 61
 ln -sf /proc/self/fd $DEV/fd
62 62
 
63
-tar --numeric-owner -C $ROOTFS -c . | docker import - archlinux
63
+tar --numeric-owner --xattrs --acls -C $ROOTFS -c . | docker import - archlinux
64 64
 docker run -i -t archlinux echo Success.
65 65
 rm -rf $ROOTFS