Fix dracut command in docs

The current command line works correctly only if one kernel is
installed. It picks the oldest if there are multiple, which is rather
unlikely to be correct. Using "tail" instead of "head" would work also,
but --regenerate-all makes it briefer and safer.
This commit is contained in:
Elmar Pruesse
2024-08-23 19:12:42 -06:00
committed by Jonathon Anderson
parent cabb97474a
commit 64f7b6c5b2
2 changed files with 2 additions and 1 deletions

View File

@@ -161,7 +161,7 @@ initramfs inside the container.
.. code-block:: shell
dnf -y install warewulf-dracut
dracut --force --no-hostonly --add wwinit --kver $(ls /lib/modules | head -n1)
dracut --force --no-hostonly --add wwinit --regenerate-all
Set the node's iPXE template to ``dracut`` to direct iPXE to fetch the
node's initramfs image and boot with dracut semantics, rather than