diff options
-rw-r--r-- | images/build-qcow-image.inc | 16 | ||||
-rw-r--r-- | images/enea-nfv-access-guest-dev.bb | 2 | ||||
-rw-r--r-- | images/enea-nfv-access-guest.bb | 2 | ||||
-rw-r--r-- | images/enea-nfv-access-vnf.bb | 3 |
4 files changed, 3 insertions, 20 deletions
diff --git a/images/build-qcow-image.inc b/images/build-qcow-image.inc deleted file mode 100644 index 1409edc..0000000 --- a/images/build-qcow-image.inc +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | IMAGE_TYPES += "ext4.qcow2" | ||
2 | CONVERSIONTYPES += "qcow2" | ||
3 | CONVERSION_DEPENDS_qcow2 = "qemu-native" | ||
4 | CONVERSION_CMD_qcow2 = "qemu-img convert -O qcow2 ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type} ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.qcow2" | ||
5 | |||
6 | IMAGE_FSTYPES += "ext4.qcow2" | ||
7 | |||
8 | # To reduce storage size remove the intermediate images | ||
9 | do_clean_unused_img() { | ||
10 | cd ${IMGDEPLOYDIR} | ||
11 | ln -sf ${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.qcow2 ${IMAGE_LINK_NAME}.qcow2 | ||
12 | rm -f ${IMGDEPLOYDIR}/*.ext4 | ||
13 | cd - | ||
14 | } | ||
15 | |||
16 | addtask clean_unused_img after do_image_ext4 before do_image_complete | ||
diff --git a/images/enea-nfv-access-guest-dev.bb b/images/enea-nfv-access-guest-dev.bb index 7e0d64b..471d316 100644 --- a/images/enea-nfv-access-guest-dev.bb +++ b/images/enea-nfv-access-guest-dev.bb | |||
@@ -10,4 +10,4 @@ IMAGE_INSTALL += " \ | |||
10 | 10 | ||
11 | IMAGE_FEATURES += "dbg-pkgs dev-pkgs" | 11 | IMAGE_FEATURES += "dbg-pkgs dev-pkgs" |
12 | 12 | ||
13 | require images/build-qcow-image.inc | 13 | IMAGE_FSTYPES += "ext4.qcow2" |
diff --git a/images/enea-nfv-access-guest.bb b/images/enea-nfv-access-guest.bb index 772c1d8..0359de4 100644 --- a/images/enea-nfv-access-guest.bb +++ b/images/enea-nfv-access-guest.bb | |||
@@ -6,4 +6,4 @@ IMAGE_INSTALL += " \ | |||
6 | packagegroup-enea-virtualization-guest \ | 6 | packagegroup-enea-virtualization-guest \ |
7 | " | 7 | " |
8 | 8 | ||
9 | require images/build-qcow-image.inc | 9 | IMAGE_FSTYPES += "ext4.qcow2" |
diff --git a/images/enea-nfv-access-vnf.bb b/images/enea-nfv-access-vnf.bb index fdf7083..cb43bc3 100644 --- a/images/enea-nfv-access-vnf.bb +++ b/images/enea-nfv-access-vnf.bb | |||
@@ -7,8 +7,7 @@ ROOT_VM = "root=/dev/vda2" | |||
7 | APPEND = "console=ttyS0,115200 hugepagesz=2M hugepages=512 isolcpus=1 nohz_full=1 rcu_nocbs=1 audit=0 quiet" | 7 | APPEND = "console=ttyS0,115200 hugepagesz=2M hugepages=512 isolcpus=1 nohz_full=1 rcu_nocbs=1 audit=0 quiet" |
8 | SYSLINUX_TIMEOUT = "30" | 8 | SYSLINUX_TIMEOUT = "30" |
9 | 9 | ||
10 | inherit image-vm | 10 | IMAGE_FSTYPES += "ext4.qcow2" |
11 | IMAGE_FSTYPES += "qcow2" | ||
12 | 11 | ||
13 | CLOUDINITPKGS = "cloud-init util-linux-blkid" | 12 | CLOUDINITPKGS = "cloud-init util-linux-blkid" |
14 | CLOUDINITPKGS += " ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'cloud-init-systemd', '', d)}" | 13 | CLOUDINITPKGS += " ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'cloud-init-systemd', '', d)}" |