Skip to content

Commit 9de06d3

Browse files
authored
fix: enabling waagent root password removal logic again for Ubuntu (#7780)r
1 parent 5acbf9b commit 9de06d3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • parts/linux/cloud-init/artifacts

parts/linux/cloud-init/artifacts/cis.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ configureLimits() {
299299
EOF
300300
}
301301

302+
# Configure waagent to not delete root password on first boot
302303
configureAzureAgent() {
303304
sed -i -e 's/\(Provisioning.DeleteRootPassword\).*/\1=n/' /etc/waagent.conf
304305
}
@@ -321,7 +322,8 @@ applyCIS() {
321322
configureSudo
322323
configureRootPath
323324
configureLimits
324-
configureAzureAgent
325+
# configureAzureAgent -- Disabling this for now, until we sync with waagent team on desired behavior.
326+
325327
# Apply system configuration to running system
326328
sysctl --write --system
327329
}

0 commit comments

Comments
 (0)