-
Notifications
You must be signed in to change notification settings - Fork 21.8k
Update harden-a-linux-image-to-remove-azure-guest-agent.md #127111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
As previously written lines 60 and 61 would delete /etc and /var/log as can be seen below: sudo chroot /mnt/dev/$imagedevice/ rm -rf /etc/ walinuxagent.conf sudo chroot /mnt/dev/$imagedevice/ rm -rf /var/log/ walinuxagent.log Commands should be ran removing the space between the directory and conf and log file.
Learn Build status updates of commit 2f23e36: ✅ Validation status: passed
For more details, please refer to the build report. |
Also, the configuration name for the agent is waagent.conf so the correct lines should be: With the curent lines you're asking our customers to delete the configuration files (all of them) and log files. |
sudo chroot /mnt/dev/$imagedevice/ rm -rf /var/lib/waagent sudo chroot /mnt/dev/$imagedevice/ rm -rf /etc/waagent.conf sudo chroot /mnt/dev/$imagedevice/ rm -rf /var/log/waagent.log
Learn Build status updates of commit 89961be: ✅ Validation status: passed
For more details, please refer to the build report. |
Can you review the proposed changes? Important: When the changes are ready for publication, adding a #label:"aq-pr-triaged" |
As previously written lines 60 and 61 would delete /etc and /var/log as can be seen below:
sudo chroot /mnt/dev/$imagedevice/ rm -rf /etc/ walinuxagent.conf
sudo chroot /mnt/dev/$imagedevice/ rm -rf /var/log/ walinuxagent.log
Additionally, the conf and log files should be waagent.conf and waagent.log.
Commands should be ran removing the space between the directory and conf and log file so that /etc and /var/log are not deleted and the proper file names used:
sudo chroot /mnt/dev/$imagedevice/ rm -rf /etc/waagent.conf
sudo chroot /mnt/dev/$imagedevice/ rm -rf /var/log/waagent.log