瀏覽代碼

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 10 年之前
父節點
當前提交
e857716d2d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      contrib/mkimage-arch.sh

+ 1 - 1
contrib/mkimage-arch.sh

@@ -60,6 +60,6 @@ mknod -m 600 $DEV/initctl p
 mknod -m 666 $DEV/ptmx c 5 2
 mknod -m 666 $DEV/ptmx c 5 2
 ln -sf /proc/self/fd $DEV/fd
 ln -sf /proc/self/fd $DEV/fd
 
 
-tar --numeric-owner -C $ROOTFS -c . | docker import - archlinux
+tar --numeric-owner --xattrs --acls -C $ROOTFS -c . | docker import - archlinux
 docker run -i -t archlinux echo Success.
 docker run -i -t archlinux echo Success.
 rm -rf $ROOTFS
 rm -rf $ROOTFS