summaryrefslogtreecommitdiffstats
path: root/images
diff options
context:
space:
mode:
Diffstat (limited to 'images')
-rw-r--r--images/enea-nfv-access-host-common.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/images/enea-nfv-access-host-common.inc b/images/enea-nfv-access-host-common.inc
index b3f110a..82e9792 100644
--- a/images/enea-nfv-access-host-common.inc
+++ b/images/enea-nfv-access-host-common.inc
@@ -59,3 +59,13 @@ IMAGE_CMD_ostree_prepend () {
59 mv var/lib/dpkg/* usr/dpkg/lib/dpkg/ 59 mv var/lib/dpkg/* usr/dpkg/lib/dpkg/
60 fi 60 fi
61} 61}
62
63IMAGE_CMD_ota_prepend () {
64 if [ "${OSTREE_BOOTLOADER}" = "grub" ]; then
65 # Upstream bbclass creates /boot/grub2, complement it with /boot/grub
66 # Note: /boot/grub2 is a dir with /boot/grub2/grub.cfg -> ../loader/grub.cfg symlink
67 # while /boot/grub -> loader is a symlink to also account for /boot/grub/grubenv
68 mkdir -p ${OTA_SYSROOT}/boot
69 ln -s loader ${OTA_SYSROOT}/boot/grub
70 fi
71}