summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo Salveti <ricardo@opensourcefoundries.com>2018-02-09 19:09:30 -0200
committerLaurent Bonnans <laurent.bonnans@here.com>2018-05-16 10:28:19 +0200
commitc7076bfe1e4fc7c134ffbc2f9d1ea800ac93b601 (patch)
treee381e1d52f070203949eb2e09ecfc4e074066724
parent340c0b07b79dce7bc3081f1212c3f82f660f6b81 (diff)
downloadmeta-updater-c7076bfe1e4fc7c134ffbc2f9d1ea800ac93b601.tar.gz
image_types_ota: make default grub.cfg a link to loader/grub.cfg
/boot/grub2/grub.cfg should reflect the grub.cfg used by the boot process instead of being an empty file. Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
-rw-r--r--classes/image_types_ota.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/image_types_ota.bbclass b/classes/image_types_ota.bbclass
index 362c1bd..b2643a7 100644
--- a/classes/image_types_ota.bbclass
+++ b/classes/image_types_ota.bbclass
@@ -76,7 +76,7 @@ IMAGE_CMD_otaimg () {
76 76
77 if [ "${OSTREE_BOOTLOADER}" = "grub" ]; then 77 if [ "${OSTREE_BOOTLOADER}" = "grub" ]; then
78 mkdir -p ${PHYS_SYSROOT}/boot/grub2 78 mkdir -p ${PHYS_SYSROOT}/boot/grub2
79 touch ${PHYS_SYSROOT}/boot/grub2/grub.cfg 79 ln -s ../loader/grub.cfg ${PHYS_SYSROOT}/boot/grub2/grub.cfg
80 elif [ "${OSTREE_BOOTLOADER}" = "u-boot" ]; then 80 elif [ "${OSTREE_BOOTLOADER}" = "u-boot" ]; then
81 touch ${PHYS_SYSROOT}/boot/loader/uEnv.txt 81 touch ${PHYS_SYSROOT}/boot/loader/uEnv.txt
82 else 82 else