#!/bin/sh
set -eu

# Smoke test for dracut to build an initrd in /boot/initrd.img

lsinitrd /boot/initrd.img

echo "Checking that /boot/initrd.img uses systemd..."
lsinitrd -m /boot/initrd.img | grep -q '^systemd$'
