From a2fb4d3aa520d6bbacd52678bc106a055293fece Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Canek=20Pel=C3=A1ez=20Vald=C3=A9s?= Date: Sat, 11 Oct 2014 17:19:17 -0500 Subject: [PATCH] Fix an error getting the initrd location for grub. --- kerninst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kerninst b/kerninst index 3212721..92a57c1 100644 --- a/kerninst +++ b/kerninst @@ -105,7 +105,7 @@ function kernel_install_gummiboot() { function _initrd_location() { case "${BOOT_MANAGER}" in grub) - echo "/boot/initrd-${KERNEL_VERSION} ${KERNEL_VERSION}" + echo "/boot/initrd-${KERNEL_VERSION}" ;; gummiboot) echo "/boot/${MACHINE_ID}/${KERNEL_VERSION}/initrd" @@ -136,9 +136,9 @@ function make_initrd() { INCLUDED+=" ${i}" done - /usr/bin/dracut -f "${INCLUDED}" "${LOCATION}" &>> "${LOGFILE}" || die + /usr/bin/dracut -f "${INCLUDED}" "${LOCATION}" "${KERNEL_VERSION}" &>> "${LOGFILE}" || die else - /usr/bin/dracut -f "${LOCATION}" &>> "${LOGFILE}" || die + /usr/bin/dracut -f "${LOCATION}" "${KERNEL_VERSION}" &>> "${LOGFILE}" || die fi einfo "The initrd was installed into ${LOCATION}." } -- GitLab