From 4e6c0ccfc97e8169328b2ef4ebdc717b9b70b883 Mon Sep 17 00:00:00 2001 From: awokd <34515595+awokd@users.noreply.github.com> Date: Fri, 23 Feb 2018 10:01:57 +0000 Subject: [PATCH 1/5] sudo dracut and add -H and version string --- configuration/managing-vm-kernel.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configuration/managing-vm-kernel.md b/configuration/managing-vm-kernel.md index ae8a3c6e..21077676 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 -H -f /boot/initramfs-$(uname -r).img $(uname -r) ~~~ Once the kernel is installed, you need to create a GRUB configuration. From d6fcf6fd51c74a7883cda20078a2e3b70ef261cb Mon Sep 17 00:00:00 2001 From: awokd <34515595+awokd@users.noreply.github.com> Date: Fri, 23 Feb 2018 10:04:56 +0000 Subject: [PATCH 2/5] make dracut generic and add -H --- common-tasks/software-update-dom0.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common-tasks/software-update-dom0.md b/common-tasks/software-update-dom0.md index 85974a4d..6afee0c1 100644 --- a/common-tasks/software-update-dom0.md +++ b/common-tasks/software-update-dom0.md @@ -128,9 +128,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 -H -f /boot/efi/EFI/qubes/initramfs-$(uname -r).img $(uname -r) ~~~ Grub2 From 9a83ea262d262f4a1c62ebb15950917df95ef2a6 Mon Sep 17 00:00:00 2001 From: awokd <34515595+awokd@users.noreply.github.com> Date: Sun, 1 Apr 2018 19:19:04 +0000 Subject: [PATCH 3/5] remove -H --- common-tasks/software-update-dom0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common-tasks/software-update-dom0.md b/common-tasks/software-update-dom0.md index 6afee0c1..c4a84141 100644 --- a/common-tasks/software-update-dom0.md +++ b/common-tasks/software-update-dom0.md @@ -130,7 +130,7 @@ your system uses. EFI ~~~ -sudo dracut -H -f /boot/efi/EFI/qubes/initramfs-$(uname -r).img $(uname -r) +sudo dracut -f /boot/efi/EFI/qubes/initramfs-$(uname -r).img $(uname -r) ~~~ Grub2 From bdd6bbc30d523dd19a647ea44d2d48717214eb50 Mon Sep 17 00:00:00 2001 From: awokd <34515595+awokd@users.noreply.github.com> Date: Sun, 1 Apr 2018 19:20:45 +0000 Subject: [PATCH 4/5] remove -H --- configuration/disk-trim.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configuration/disk-trim.md b/configuration/disk-trim.md index bf54f15b..a43c748b 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. From 1644d3d2a2cdda44a8adcd0a3ed11e78dec076d6 Mon Sep 17 00:00:00 2001 From: awokd <34515595+awokd@users.noreply.github.com> Date: Sun, 1 Apr 2018 19:21:59 +0000 Subject: [PATCH 5/5] remove -H --- configuration/managing-vm-kernel.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration/managing-vm-kernel.md b/configuration/managing-vm-kernel.md index 21077676..8c9b9881 100644 --- a/configuration/managing-vm-kernel.md +++ b/configuration/managing-vm-kernel.md @@ -254,7 +254,7 @@ Take a look at the `dkms` documentation, especially the `dkms autoinstall` comma 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: ~~~ -sudo dracut -H -f /boot/initramfs-$(uname -r).img $(uname -r) +sudo dracut -f /boot/initramfs-$(uname -r).img $(uname -r) ~~~ Once the kernel is installed, you need to create a GRUB configuration.