diff --git a/common-tasks/software-update-dom0.md b/common-tasks/software-update-dom0.md index 49a038c0..17cb4491 100644 --- a/common-tasks/software-update-dom0.md +++ b/common-tasks/software-update-dom0.md @@ -138,9 +138,9 @@ If the update process does not automatically do it (you should see it mentioned from the update command), you may need to manually rebuild the EFI or grub config depending on which your system uses. -EFI (Replace the file names with the correct versions for your updated kernel) +EFI ~~~ -sudo /usr/bin/dracut -f /boot/efi/EFI/qubes/initramfs-4.4.31-11.pvops.qubes.x86_64.img 4.4.31-11.pvops.qubes.x86_64 +sudo dracut -f /boot/efi/EFI/qubes/initramfs-$(uname -r).img $(uname -r) ~~~ Grub2 diff --git a/configuration/disk-trim.md b/configuration/disk-trim.md index f176a108..38c8dc1e 100644 --- a/configuration/disk-trim.md +++ b/configuration/disk-trim.md @@ -85,9 +85,9 @@ To enable TRIM support in dom0 with LUKS you need to: 3. Add `rd.luks.options=discard` to kernel cmdline (follow either GRUB2 or EFI, not both): * GRUB2: `/etc/default/grub`, `GRUB_CMDLINE_LINUX` line and Rebuild grub config (`grub2-mkconfig -o /boot/grub2/grub.cfg`), then - Rebuild initrd **in hostonly mode** (`dracut -H -f`) + Rebuild initrd (`dracut -f`) * EFI: `/boot/efi/EFI/qubes/xen.cfg`, `kernel=` line(s), then - Rebuild initrd **in hostonly mode** (`dracut -H -f /boot/efi/EFI/qubes/initramfs-$(uname -r).img $(uname -r)`) + Rebuild initrd (`dracut -f /boot/efi/EFI/qubes/initramfs-$(uname -r).img $(uname -r)`) 4. Reboot the system. diff --git a/configuration/managing-vm-kernel.md b/configuration/managing-vm-kernel.md index ae8a3c6e..8c9b9881 100644 --- a/configuration/managing-vm-kernel.md +++ b/configuration/managing-vm-kernel.md @@ -251,10 +251,10 @@ You need to also ensure you have the `kernel-devel` package for the same kernel If you are using a distribution kernel package (`kernel` package), the initramfs and kernel modules may be handled automatically. If you are using a manually built kernel, you need to handle this on your own. Take a look at the `dkms` documentation, especially the `dkms autoinstall` command may be useful. -If you did not see the `kernel` install rebuild your initramfs, or are using a manually built kernel, you will need to rebuild it yourself with the following (replace version numbers with those appropriate for your kernel): +If you did not see the `kernel` install rebuild your initramfs, or are using a manually built kernel, you will need to rebuild it yourself with the following: ~~~ -dracut -f /boot/initramfs-4.14.16-200.fc26.x86_64.img 4.14.16-200.fc26.x86_64 +sudo dracut -f /boot/initramfs-$(uname -r).img $(uname -r) ~~~ Once the kernel is installed, you need to create a GRUB configuration.