mkdir -p "$TESTDIR"/ESP/EFI/BOOT "$TESTDIR"/dracut.conf.d
- # This is the preferred way to build uki with dracut on a systenmd based system
- # Currently this only works in a few distributions and architectures, but it is here
- # for reference
+ # This is the preferred way to build uki with dracut on a systemd based system
if command -v systemd-detect-virt &> /dev/null && systemd-detect-virt -c &> /dev/null \
&& command -v kernel-install &> /dev/null \
&& command -v systemctl &> /dev/null \
- && command -v ukify &> /dev/null \
- && [[ $(kernel-install --version | grep -oP '(?<=systemd )\d+') -gt 254 ]]; then
+ && command -v ukify &> /dev/null; then
echo "Using ukify via kernel-install to create UKI"