diff --git a/dracut-ukify b/dracut-ukify index 46ae6e9..7ea3b14 100755 --- a/dracut-ukify +++ b/dracut-ukify @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash function usage { echo "$(basename "$0") [OPTIONS]" @@ -39,6 +39,68 @@ else fi +ukify_conf="/etc/kernel/uki.conf" +keys_count=0 + +function check_uki_conf_and_keys_and_gen_keys { + if [ ! -f "${ukify_conf}" ]; then + echo "Create ${ukify_conf}" + cat >"${ukify_conf}" <"${ukify_conf}" <