@@ -79,11 +79,11 @@ Resources:
7979 runcmd :
8080 # Mount EFS filesystem as /home
8181 - mkdir -p /tmp/home
82- - rsync -a /home/ /tmp/home
82+ - rsync -aA /home/ /tmp/home
8383 - echo "${EfsFilesystemId}:/ /home efs tls,_netdev" >> /etc/fstab
8484 - mount -a -t efs defaults
8585 - if [ "enabled" == "$(sestatus | awk '/^SELinux status:/{print $3}')" ]; then setsebool -P use_nfs_home_dirs 1; fi
86- - rsync -a --ignore-existing /tmp/home/ /home
86+ - rsync -aA --ignore-existing /tmp/home/ /home
8787 - rm -rf /tmp/home/
8888 # If provided, mount FSxL filesystem as /shared
8989 - if [ ! -z "${FSxLustreFilesystemId}" ]; then amazon-linux-extras install -y lustre=latest; mkdir -p /shared; chmod a+rwx /shared; mount -t lustre ${FSxLustreFilesystemId}.fsx.${AWS::Region}.amazonaws.com@tcp:/${FSxLustreFilesystemMountName} /shared; chmod 777 /shared; fi
@@ -123,11 +123,11 @@ Resources:
123123 runcmd :
124124 # Mount EFS filesystem as /home
125125 - mkdir -p /tmp/home
126- - rsync -a /home/ /tmp/home
126+ - rsync -aA /home/ /tmp/home
127127 - echo "${EfsFilesystemId}:/ /home efs tls,_netdev" >> /etc/fstab
128128 - mount -a -t efs defaults
129129 - if [ "enabled" == "$(sestatus | awk '/^SELinux status:/{print $3}')" ]; then setsebool -P use_nfs_home_dirs 1; fi
130- - rsync -a --ignore-existing /tmp/home/ /home
130+ - rsync -aA --ignore-existing /tmp/home/ /home
131131 - rm -rf /tmp/home/
132132 # If provided, mount FSxL filesystem as /shared
133133 - if [ ! -z "${FSxLustreFilesystemId}" ]; then amazon-linux-extras install -y lustre=latest; mkdir -p /shared; chmod a+rwx /shared; mount -t lustre ${FSxLustreFilesystemId}.fsx.${AWS::Region}.amazonaws.com@tcp:/${FSxLustreFilesystemMountName} /shared; fi
0 commit comments