From: Jonatan Schlag Date: Sun, 18 Nov 2018 17:25:44 +0000 (+0000) Subject: Fix copying the grub config X-Git-Url: http://git.ipfire.org/?p=people%2Fjschlag%2Fipfire-3.x-image.git;a=commitdiff_plain;h=9c529a3a9224f76756d84d6c06e3e1b3f87c12f5 Fix copying the grub config Signed-off-by: Jonatan Schlag --- diff --git a/generate_image.sh b/generate_image.sh index 6cff68d..ddb3813 100755 --- a/generate_image.sh +++ b/generate_image.sh @@ -4,6 +4,10 @@ # Copyright (C) - IPFire Development Team # ############################################################################### +#Path of the script + +SCRIPT_PATH="$(dirname "$(readlink -f "$0")")" + # Constants # Proper error codes @@ -426,7 +430,7 @@ yes | pakfire --root=${IMAGE_MOUNT_DIR} ${ENABLE_LOCAL} install @Base ${PACKAGES #Hack to install a /etc/default/grub file -cp -f grub "${IMAGE_MOUNT_DIR}/etc/default" +cmd cp -f "${SCRIPT_PATH}/grub" "${IMAGE_MOUNT_DIR}/etc/default" # ## Install grub2 if neccessary