Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dracut initramfs boot #1191

Merged
merged 7 commits into from
Jun 6, 2024
Merged

Commits on Jun 6, 2024

  1. Add initramfs stage to warewulfd

    The initramfs stage supports serving an initramfs image from within the
    container image, typically generated by dracut.
    
    Signed-off-by: xu yang <xyang@ciq.com>
    Signed-off-by: Jonathon Anderson <janderson@ciq.com>
    JasonYangShadow authored and anderbubble committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    a322061 View commit details
    Browse the repository at this point in the history
  2. New warewulf-dracut subpackage

    warewulf-dracut includes a dracut module to be installed in a container
    image to support building an initramfs that can boot from Warewulf.
    
    Signed-off-by: Jonathon Anderson <janderson@ciq.com>
    anderbubble committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    18cebb8 View commit details
    Browse the repository at this point in the history
  3. New, optional dracut.ipxe configuration

    dracut.ipxe boots an initramfs detected in the container image. This
    required a few small changes to warewulfd and the wwinit overlay to
    accommodate the dracut initramfs configuring the network interface
    before wwinit:
    
    - Include .NetDevs in the ipxe configuration template, so that dracut
      can configure interfaces with the correct names.
    
    - Configure NetworkManager to not keep the initramfs configuration, in
      stead applying the configuration found by wwinit.
    
    Signed-off-by: Jonathon Anderson <janderson@ciq.com>
    anderbubble committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    53dae60 View commit details
    Browse the repository at this point in the history
  4. User documentation for dracut initramfs booting

    Signed-off-by: Jonathon Anderson <janderson@ciq.com>
    anderbubble committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    cb5146b View commit details
    Browse the repository at this point in the history
  5. Add tests for new iPXE template variables

    Signed-off-by: Jonathon Anderson <janderson@ciq.com>
    JasonYangShadow authored and anderbubble committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    48d6b63 View commit details
    Browse the repository at this point in the history
  6. Improve the detection of SELinux capable rootfs

    initramfs uses tmpfs regardless of whether root=tmpfs in Warewulf. As
    such, 90-selinux needs to be updated to detect the actual provenance of
    /, rather than the configured setting.
    
    Signed-off-by: Jonathon Anderson <janderson@ciq.com>
    anderbubble committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    9500487 View commit details
    Browse the repository at this point in the history
  7. Support dracut booting with GRUB

    Signed-off-by: Jonathon Anderson <janderson@ciq.com>
    anderbubble committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    05b951d View commit details
    Browse the repository at this point in the history