Skip to content

Commit aae98f0

Browse files
authored
Corrections based on peer-review
Updated inconsistencies and missing section
1 parent 5fc6be5 commit aae98f0

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

support/azure/virtual-machines/linux/repair-linux-vm-using-ALAR.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ In all of the example commands these are the parameters shown:
7878
7979
- `RG-NAME`: The name of the resource group containing the broken VM.
8080
- `VM-NAME`: The name of the broken VM.
81-
- `RESCUE-UID`: The user created on the repair VM for login. It's the equivalent of the user created on a new VM in the Azure portal.
82-
- `RESCUE-PASS`: The password for `RESCUE-UID`, enclosed in single quotes. For example: `'password!234'`.
81+
- `RESCUE-USERNAME`: The user created on the repair VM for login. It's the equivalent of the user created on a new VM in the Azure portal.
82+
- `RESCUE-PASS`: The password for `RESCUE-USERNAME`, enclosed in single quotes. For example: `'password!234'`.
8383
- `action1,action2`, etc.: One or more of the defined actions available to apply to the broken VM. See the complete list of actions below, and in the [ALAR GitHub ReadMe](https://github.com/Azure/ALAR). You can pass one or more actions that are run consecutively. For multiple operations, delineate them using commas without spaces, such as `fstab,sudo`.
8484
8585
## The ALAR actions
@@ -90,6 +90,14 @@ This action strips off any lines in the */etc/fstab* file that aren't needed to
9090
9191
For more information about issues with a malformed */etc/fstab* file, see [Troubleshoot Linux VM starting issues because fstab errors](./linux-virtual-machine-cannot-start-fstab-errors.md).
9292
93+
### efifix
94+
95+
This action can be used to reinstall the required software to boot from a GEN2 VM. The *grub.cfg* file is also regenerated.
96+
97+
### grubfix
98+
99+
This action can be used to reinstall GRUB and regenerate the *grub.cfg* file.
100+
93101
### initrd
94102
95103
This action can be used to fix an initrd or initramfs that is either corrupted or incorrectly created.
@@ -118,13 +126,9 @@ This action corrects an incorrect or malformed serial console configuration for
118126
- No GRUB menu is displayed at VM startup.
119127
- No operating system related information is written to the serial console.
120128
121-
### grubfix
122-
123-
This action can be used to reinstall GRUB and regenerate the *grub.cfg* file.
129+
### sudo
124130
125-
### efifix
126-
127-
This action can be used to reinstall the required software to boot from a GEN2 VM. The *grub.cfg* file is also regenerated.
131+
The `sudo` action will reset the permissions on the */etc/sudoers* file and all files in */etc/sudoers.d* to the required 0440 modes as well as check other best practices. A basic check is run to detect and report on duplicate user entries and move only the */etc/sudoers.d/waagent* file if it is found to conflict with other files.
128132
129133
### auditd
130134

0 commit comments

Comments
 (0)