Skip to content

Commit 34d369b

Browse files
Update create-upload-generic.md
1 parent 0bfbc59 commit 34d369b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

articles/virtual-machines/linux/create-upload-generic.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,17 +184,19 @@ The [Azure Linux Agent](../extensions/agent-linux.md) `waagent` provisions a Lin
184184
**Initramfs**
185185

186186
```bash
187-
sudo cp /boot/initramfs-<kernel-version>.img <kernel-version>.img.bak
188-
sudo dracut -f -v /boot/initramfs-<kernel-version>.img <kernel-version> --add-drivers "hv_vmbus hv_netvsc hv_storvsc"
187+
sudo cd /boot
188+
sudo cp initramfs-<kernel-version>.img <kernel-version>.img.bak
189+
sudo dracut -f -v initramfs-<kernel-version>.img <kernel-version> --add-drivers "hv_vmbus hv_netvsc hv_storvsc"
189190
sudo grub-mkconfig -o /boot/grub/grub.cfg
190191
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
191192
```
192193

193194
**Initrd**
194195

195196
```bash
196-
sudo mv /boot/initrd.img-<kernel-version> <kernel-version>.old
197-
sudo mkinitramfs -o /boot/initrd.img-<kernel-version> <kernel-version> --with=hv_vmbus,hv_netvsc,hv_storvsc
197+
sudo cd /boot
198+
sudo cp initrd.img-<kernel-version> initrd.img-<kernel-version>.bak
199+
sudo mkinitramfs -o initrd.img-<kernel-version> <kernel-version> --with=hv_vmbus,hv_netvsc,hv_storvsc
198200
sudo update-grub
199201
```
200202
4. Ensure that the SSH server is installed, and configured to start at boot time. This configuration is usually the default.

0 commit comments

Comments
 (0)