#!/bin/bash

KERNEL_VERSION=7.0.10-1

echo ":: Building initramfs for linux-${KERNEL_VERSION}"
dracut -f --no-hostonly-cmdline --omit "systemd dracut-systemd systemd-battery-check systemd-pcrextend" "/boot/initramfs-linux.img" --kver ${KERNEL_VERSION}
echo ":: Building initramfs for linux-fallback"
dracut -f --no-hostonly --omit "systemd dracut-systemd systemd-battery-check systemd-pcrextend" --no-hostonly-cmdline "/boot/initramfs-linux-fallback.img" --kver ${KERNEL_VERSION}
