]> git.ipfire.org Git - people/jschlag/ipfire-3.x-image.git/blobdiff - generate_image.sh
Fix copying the grub config
[people/jschlag/ipfire-3.x-image.git] / generate_image.sh
index 6cff68d319787f4c37e3bf0386780b0a028f445a..ddb3813f9209b019b49af2823fc505218ec6cde7 100755 (executable)
@@ -4,6 +4,10 @@
 # Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
+#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