Skip to content

Commit 4f6bde6

Browse files
committed
Test -A option to preserve ACL
1 parent de0b4cb commit 4f6bde6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

recipes/pcs/getting_started/assets/cfn-pcs-lt-efs-fsxl.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ Resources:
8888
runcmd:
8989
# Mount EFS filesystem as /home
9090
- mkdir -p /tmp/home
91-
- rsync -a /home/ /tmp/home
91+
- rsync -aA /home/ /tmp/home
9292
- echo "${EfsFilesystemId}:/ /home efs tls,_netdev" >> /etc/fstab
9393
- mount -a -t efs defaults
94-
- rsync -a --ignore-existing /tmp/home/ /home
94+
- rsync -aA --ignore-existing /tmp/home/ /home
9595
- rm -rf /tmp/home/
9696
# If provided, mount FSxL filesystem as /shared
9797
- 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
@@ -133,10 +133,10 @@ Resources:
133133
runcmd:
134134
# Mount EFS filesystem as /home
135135
- mkdir -p /tmp/home
136-
- rsync -a /home/ /tmp/home
136+
- rsync -aA /home/ /tmp/home
137137
- echo "${EfsFilesystemId}:/ /home efs tls,_netdev" >> /etc/fstab
138138
- mount -a -t efs defaults
139-
- rsync -a --ignore-existing /tmp/home/ /home
139+
- rsync -aA --ignore-existing /tmp/home/ /home
140140
- rm -rf /tmp/home/
141141
# If provided, mount FSxL filesystem as /shared
142142
- 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

recipes/pcs/getting_started/assets/pcs-lt-efs-fsxl.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)