Update RHELinit.sh

This commit is contained in:
Molly Lau 2023-10-03 14:19:29 +09:00 committed by GitHub
parent 6b0887782a
commit e91be6840c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -125,7 +125,7 @@ sed -ri 's/^#?PasswordAuthentication.*/PasswordAuthentication yes/g' /mnt/etc/ss
sed -ri 's/^#?Port.*/Port '${sshPORT}'/g' /mnt/etc/ssh/sshd_config
# Disable allocate swap.
# Note: Swap allowcation in "runcmd:" stage during execution of Cloud Init on aarch64 CPU architecture would cause a fatal because of "cloud-final.service" runs failed.
# Note: Swap allowcation in "runcmd:" stage during execution of cloud init on aarch64 CPU architecture would cause a fatal because of "cloud-final.service" runs failed.
[[ "$lowMemMode" != "1" ]] && sed -i '/swapspace/d' $cloudInitFile
# Hack cloud init.