Skip to content

Commit 2f23e36

Browse files
authored
Update harden-a-linux-image-to-remove-azure-guest-agent.md
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.
1 parent c31db3e commit 2f23e36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/confidential-computing/harden-a-linux-image-to-remove-azure-guest-agent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ Steps to create an image that removes the Azure Linux Agent are as follows:
5757
For Ubuntu 18.04+
5858
```
5959
sudo chroot /mnt/dev/$imagedevice/ rm -rf /var/lib/walinuxagent
60-
sudo chroot /mnt/dev/$imagedevice/ rm -rf /etc/ walinuxagent.conf
61-
sudo chroot /mnt/dev/$imagedevice/ rm -rf /var/log/ walinuxagent.log
60+
sudo chroot /mnt/dev/$imagedevice/ rm -rf /etc/walinuxagent.conf
61+
sudo chroot /mnt/dev/$imagedevice/ rm -rf /var/log/walinuxagent.log
6262
```
6363
6464
5. Create a systemd service to provision the VM.

0 commit comments

Comments
 (0)