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

@@ -49,6 +49,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Added a link to an example SELinux-enabled node image in documentation. #1305 - Added a link to an example SELinux-enabled node image in documentation. #1305
- Refine error handling for `wwctl configure`. #1273 - Refine error handling for `wwctl configure`. #1273
- Updated dracut guidance for building initramfs. #1369
## v4.5.6, 2024-08-05 ## v4.5.6, 2024-08-05

View File

@@ -161,7 +161,7 @@ initramfs inside the container.
.. code-block:: shell .. code-block:: shell
dnf -y install warewulf-dracut 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 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 node's initramfs image and boot with dracut semantics, rather than