From caa2f9fa42ba139b9f4578ba5271392acaca5867 Mon Sep 17 00:00:00 2001 From: Valeria Fadeeva Date: Sat, 14 Oct 2023 18:18:04 +0500 Subject: [PATCH] Update --- dracut-ukify | 116 +++++++++++++++++++++++++++++---------------------- 1 file changed, 66 insertions(+), 50 deletions(-) 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}" <