summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* enea-nfv-access-vnf: cloud-init-systemd package not foundAdrian Calianu2021-05-251-1/+0
| | | | | | | | | | | | | | removed cloud-init-systemd package from VNF image since the content of this package is included now in cloud-init package. /usr/lib/systemd folder which supposed to be part of cloud-init-systemd is copied in cloud-init package(by default poky copy /usr/lib in ${PN}). So it result an empty folder which is not used to create cloud-init-systemd package anymore. Change-Id: I49a592f4a076df34f1d845a219d185b14722f80e Signed-off-by: Adrian Calianu <adrian.calianu@enea.com>
* installer: grub: merge serial/gfx boot entriesAlexandru Avadanii2021-05-212-97/+1
| | | | | | | | | | | | - drop our class override that basically reverted the boot menu entry order and used to make serial the first (default) boot entry instead of graphical; - unset GRUB_GFXSERIAL that creates 2 boot entries instead of one; - extend APPEND to contain both tty0 (graphical) and ttyS0 (serial): * ttyS0 is last, so it has priority for selection as /dev/console; Change-Id: I9be029bfea00d9aca61527046fedbe30e7ec58c2 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
* core-image-minimal-initramfs: remove ixgbeAdrian Calianu2021-05-141-1/+1
| | | | | | | since it is building from kernel source tree Change-Id: Iaaed6e3cb6d55b4f1db398def68344cc6d7de575 Signed-off-by: Adrian Calianu <adrian.calianu@enea.com>
* Add element-vcpe to enea-nfv-access imageAlexandru Avadanii2021-05-121-0/+1
| | | | | | This reverts commit 9eceb046982de3da1921d97cedf4a3393e875d9a. Change-Id: I9f9eb70af6d6548f25f16f1031ba43bf298cb9e2
* layer.conf: LAYERSERIES_COMPAT: add gatesgarthAlexandru Avadanii2021-05-051-0/+1
| | | | | Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> Change-Id: I0de2153af16f32309afd96402366ab0bb3edbf85
* host image: drop obsolete DEPENDSAlexandru Avadanii2021-04-261-4/+0
| | | | | | | | | | | - qemucross-wrapper was added during the gatesgarth rebase as a workaround and is not currently needed; - grub-efi-native was added during the initial SOTA grub integration and is no longer needed (fixed by adding the correct DEPENDS in the grub-efi recipe); Change-Id: Ib415fcd80dbcbccb6e25068abd1c5a6bbad3a460 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
* conf/local.conf: Drop 'dpdk' from IMAGE_INSTALLAlexandru Avadanii2021-04-262-4/+0
| | | | | | | | This was added as a workaround during the gatesgarth rebase and is no longer needed. Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> Change-Id: I627c75b77d1fc2ec4fb6de9c45ac3712cce7966f
* Revert "Add element-vcpe to enea-nfv-access image"Adrian Calianu2021-04-221-1/+0
| | | | | | This reverts commit 8a666dac9fce6e073c34768e3b8a80eaaedfd887. Change-Id: I96ea9fc565974bd66a252e178a0615e1b4bc0e9e
* Add element-vcpe to enea-nfv-access imageAndreas Wellving2021-04-211-0/+1
| | | | | | | | Signed-off-by: Adrian Calianu <adrian.calianu@enea.com> Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> Signed-off-by: Andreas Wellving <andreas.wellving@enea.com> Change-Id: I8892684cf302edaca98f50448d424432545df8de
* sota: Remove aktualizr aktualizr-info from imagesAlexandru Avadanii2021-04-121-0/+8
| | | | | | | | | | | These were added to all images inheriting sota.bbclass. We don't use them, so spare some unexpected dependencies by removing them. [1] https://github.com/advancedtelematic/meta-updater/commit/3bb86635 Change-Id: I01334024b70c161d1614bf2e7296cd3f7146ee13 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
* classes/sota: INITRAMFS_TYPES: s/ext4/cpio/Alexandru Avadanii2021-04-122-2/+2
| | | | | | | | | | Upstream meta-updater switched from initrd to initramfs in [1], so the image format changed from ext4.gz to cpio.gz. [1] https://github.com/advancedtelematic/meta-updater/commit/212d71d2 Change-Id: Ibb1239eeba319877624fc76209f733862f52cb35 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
* classes/override_grub* sync with upstream renamesAlexandru Avadanii2021-04-124-36/+39
| | | | | | | | | | | | While at it, replace some hardcoded p7b extenstions with ${SB_FILE_EXT} and vmlinuz references with the appropiate variable (upstream no longer renames bzImage to vmlinuz in ISO root after [1]). [1] https://git.yoctoproject.org/cgit.cgi/poky/commit/?id=b6e36c01977 Change-Id: I5ce414a2f281ff2f1aeb0e26f35608cd8750855d Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
* classes: Rebase override_image_types_{ota,ostree}Alexandru Avadanii2021-04-093-254/+10
| | | | | | | | | | | | | | | | | | | | | - override_image_types_ostree.inc is no longer required; - override_image_types_ota.inc is mostly superseded by upstream, except the creation of /boot/grub as a symlink to /boot/loader (note that /boot/grub2 is a real dir with /boot/grub2/grub.cfg being a symlink to /boot/loader/grub.cfg - it would be quite complicated to override the whole IMAGE_CMD_ota just to keep symlinking the parent dir instead of grub.cfg directly); /boot/grub should be a symlink so that /boot/grub/grubenv also points to /boot/loader/grubenv); fold its contents into enea-nfv-access-host-common.inc as it doesn't override a class anymore Note: Previously, OSTree did not follow symlinks, so the symlink /boot/grub2/grub.cfg was being overwritten with a real file, this is no longer an issue. Change-Id: I38ec2b3a791ef7068b97caa49010eee62b7f4aee Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
* do_image_ostree: Fix dpkg data mvAlexandru Avadanii2021-04-091-11/+3
| | | | | | | | | | | While at it, remove one obsoleted workaround from do_image_otaimg: grub:do_populate_sysroot was removed from do_image_otaimg (do_image_ota_ext4) deps in [1]. [1] https://github.com/advancedtelematic/meta-updater/commit/850801c Change-Id: I45f77010aa9cd62dec2e37b278539dc4d28605c5 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
* enea-nfv-access: Add hddimg IMG_FSTYPE before includesAdrian Dudau2021-04-081-6/+2
| | | | | | | | | | | | Adding IMG_FSTYPES += "hddimg" must be done before inheriting core-image (in enea-image-common.inc) to avoid parsing errors. Further, override_grub-efi_secureboot.inc overrides some functions brought in by adding hddimg image type, so adding it after the include would render the override useless. Change-Id: Id87fc69c5dd5d0de953fbe014f639d382c3714e8 Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
* Upgrade to gatesgarthAdrian Dudau2021-03-2510-10/+19
| | | | | | | | This is an initial commit, containing quick fixes and hacks to allow building the images. All these issues will be re-evaluated and fixed properly in their own commits. Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
* Set the users and groups staticallyfeature_CPDX-3521Matei Valeanu2021-02-246-0/+189
| | | | | | | | | Cannot set USERADD_ERROR_DYNAMIC to error as it breaks the build. We need to be carefull when adding new users/groups, to also add them to files/{groups,passwd} Change-Id: I7ecfa9936af6319ced946e243cbe3bbcd23e8e4c Signed-off-by: Matei Valeanu <Matei.Valeanu@enea.com>
* add ixgbe driver in initramfsAdrian Calianu2021-02-221-1/+1
| | | | | | | this was disabled from kernel source tree Change-Id: I82ff784dae6d34de19966b61f194944dba2adbe9 Signed-off-by: Adrian Calianu <adrian.calianu@enea.com>
* distro/eneanfvaccess.conf: Update distro version to 2.4.0Adrian Dudau2021-02-021-1/+1
| | | | | Change-Id: Ia39f1767dead467c0c78a5da085e3fc191f1cd4b Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
* grub: Fix backwards compatibility with OSTreefeature_CPDX-3499Alexandru Avadanii2020-12-171-0/+1
| | | | | | | | | | | | | | | Before NFVA 2.3.0, OSTree only checked for the existence of /boot/grub2/grub.cfg, skipping creating grub.cfg if that file was not present. In NFVA 2.3.0, only /boot/grub/grub.cfg is created, leading to issues when trying to downgrade to an older NFVA release. To maintain backwards compatibility with OSTree versions that only check the old path, create both /boot/{grub,grub2} as symlinks to the loader directory managed by OSTree. Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> Change-Id: Ic2c89930794e4c9d3ee3b2468d1331e5d7f63834
* cleanup: remove run-postinsts, dpkg status-oldAlexandru Avadanii2020-12-142-1/+14
| | | | | | | | | | | | | | - initramfs: remove run-postinsts package, it has no purpose as there is no package manager inside the initramfs; - rootfs: remove run-postinsts if the package manager is DPKG/APT, since it duplicates the existing dpkg-configure.service installed by the dpkg recipe; - rootfs: cleanup DPKG backup file 'status-old', it contains information about packages before the final installation stages of the rootfs build process (completely irrelevant for the end user), saves >500kB; Change-Id: I6bd257d56805a3dfee4478c88977942e9f210afc Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
* Change NFV Access distro version to 2.3.0test_new_branchfeature_ELCCR-1150feature_CPDX-3493custom_CPDX-3447Dragos Ciprian Nedelcu2020-11-061-2/+2
| | | | | Change-Id: I8c782ffdfb2d7dc4466bb21b83e40af2c0edfb0e Signed-off-by: Dragos Ciprian Nedelcu <Dragos.Ciprian.Nedelcu@enea.com>
* images: Create enea-image-minimal linkfeature_CPDX-3461feature_CPDX-3314Catalin Iova2020-10-191-0/+10
| | | | | Change-Id: I916fc13c7979e4ab9077ec3e43b67b3a5320b74c Signed-off-by: Catalin Iova <Catalin.Iova@enea.com>
* grub: Fix loader link, unify grub.cfg locationstest_branchout_newtest_branchoutAlexandru Avadanii2020-09-142-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Fix an obviously broken link created during installation This led to issues creating/editing the grubenv file during NFVA installation calls to `grub-mkconfig`. These errors were not observed before, since stderr was not logged during the installation. Also, the link was fixed later on, so subsequent calls to grub-* utilities no longer complained about it; the error only happened during the NFVA installation. 2. Unify expected locations of grub.cfg Previously, there were 3 possible locations of grub.cfg used throughout the layers/scripts: - /boot/loader/grub.cfg - the proper location, used by NFVA installer components, as well as ostree related tooling; - /boot/grub/grub.cfg - used in some recipes, but not present on the board currently. Also the expected default location of our current grub-* utilites, since we build grub without an explicit `--with-grubdir` configure argument, which defaults (guessing) to the `PACKAGE` name, in our case `grub` (and not `grub2`); - /boot/grub2/grub.cfg - used in OTA image scripts by linking it to /boot/loader/grub.cfg - however the link is later converted into a real file, ending up duplicating the real grub.cfg (although they are identical content-wise, they might confuse the user); To settle this confusion, we will keep only /boot/loader/grub.cfg as the true configuration file and convert /boot/grub2 to a symlink pointing at /boot/loader, while also renaming it to /boot/grub. This has the benefit of "fixing" all grub-* tools which try to write their configuration files to /boot/grub. An alternative for that would be building grub2 with the configure flag `--with-grubdir=loader`, but that might break other things, so a symlink for the traditional /boot/grub is safer. Before creating this link, `grub-editenv list` would not work without explicitly providing the filepath of the `/boot/loader/grubenv` file, which might not be obvious for the end user. Also, before this link, `grub-mkconfig` required explicitly setting the `-p` (prefix) to '/' while running on the target. Both of these issues will be fixed with the new link. Since our ostree version (2018.7) is quite old, it requires one backport for it to also check for /boot/grub/grub.cfg and not only /boot/grub2/grub.cfg. The backport will be handled in the meta-enea-virtualiation layer, hence this change's dependency. Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> Depends-on: I6bdc80e08a272e1534dd63717348bfaa50807d93 Change-Id: If8a61c89200414922a3f36e6c8fca58d7d3b6495
* Add debug images including gdb, gdbserver and oprofileAndreas Wellving2020-08-287-0/+580
| | | | | Change-Id: I2a103bd73f5daaea8357ff2c5094dc2dd7fdf193 Signed-off-by: Andreas Wellving <andreas.wellving@enea.com>
* README: Don't specify branches on dependent layerstest_branching_scriptfeature_CPDX-3469feature_CPDX-3385Adrian Dudau2020-08-031-3/+0
| | | | | | | This would add too much overhead when switching branches. Change-Id: I9ca5dbd0530017fcdd29fcb1d7a061386c98350e Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
* NFV Access distro version increased to 2.2.3Adrian Calianu2020-07-291-1/+1
| | | | Change-Id: I7655edfba90f40df5a66ec22f865db26e5db54ed
* DISTRO_VERSION_MAJOR weak assignmentMatei Valeanu2020-07-131-1/+1
| | | | | | | | Set DISTRO_VERSION_MAJOR to a weaker default assignment, so that it can be easily overriden from local.conf Change-Id: I5cd83aa260ec11495b2622d1068da3f9f914db88 Signed-off-by: Matei Valeanu <Matei.Valeanu@enea.com>
* eneanfvaccess.conf: Add scp to HOSTTOOLSfeature_bugfixes-2.3.0Adrian Dudau2020-07-011-0/+2
| | | | | | | This is needed for fetching ODM through ssh. Signed-off-by: Adrian Dudau <adrian.dudau@enea.com> Change-Id: I1d6f44c3f8f3dcfd17c1b1c4f916adf889a8b854
* Update for develop branchAdrian Dudau2020-06-091-2/+2
| | | | | Change-Id: Ie9b0e7fa3d9c32a369f7ebc6e10287e018340c0a Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
* Update layer dependencies to account for new layer namesAdrian Dudau2020-05-286-19/+19
| | | | | Change-Id: I34619d8b8170a17a3281dc7e8162e88ca18d5c7d Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
* Skip grub/syslinux menu on USB bootMartin Borg2020-05-261-6/+4
| | | | | | | Skip menus and boot default selection (installer initramfs) immediately Change-Id: I4c7acb2291663e3648f4cb13f7c238cb9c31c4d2 Signed-off-by: Martin Borg <martin.borg@enea.com>
* Changed DISTRO_VERSION to 2.2.2Cristian Scrieciu2019-11-071-1/+1
| | | | Change-Id: Ie599f30d7594c0593d745df97f749ba76fca72da
* Update the distro version for the 2.2.1 releaseGabriel Ionescu2019-08-301-1/+1
| | | | Change-Id: I18799d611a2f184b29a435a23357c77b35bbdf0c
* Make the installer as first entry and enable timeout to fall through Gabriel Ionescu2019-08-121-3/+3
| | | | | | to the installer Change-Id: I170f961cc9d6bc257fa159481a24d9689c4b4a49
* Make the serial console as the first choice in GRUB and SYSLINUXGabriel Ionescu2019-08-091-2/+2
| | | | Change-Id: I146aafd422d0f99b25ef222380e053b08239c02f
* eneanfvaccess: Define Secure Boot artefact folderAdrian Dudau2019-07-291-0/+2
| | | | | | | | This folder is used to group all SB artefacts inside the deploy directory. Change-Id: Ic2742b7242a7ff2232f23099f6862c90e3f03c55 Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
* Move efi-secure-boot feature to nfvaccess distro definitionAdrian Dudau2019-07-084-3/+5
| | | | | Change-Id: Ia9944b2ed8fad4a32984443b5ef98f287904c0d8 Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
* ostree and otaimg enhancementsMatei Valeanu2019-06-265-14/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | override_image_types_ostree.inc - do_image_ostree task: -add dirs, cleandirs flags, to avoid mktemp, rm, cd, and to also remove at clean -add subimages, imgsuffix flags, to use automatic link creation -create image in IMGDEPLOYDIR, instead of DEPLOY_DIR_IMAGE to use the automatic deploy and clean mechanism (also helps in cleaning old images) override_image_types_ota.inc - do_image_otaimg task: -add dirs, cleandirs flags, to avoid mktemp, rm, cd, and to also remove at clean -avoid untar-ing the ostree image, and use OSTREE_ROOTFS -create image in IMGDEPLOYDIR, instead of DEPLOY_DIR_IMAGE to use the automatic deploy and clean mechanism Move OSTREE_REPO to "${WORKDIR}/ostree-repo", instead of DEPLOY_DIR_IMAGE, this repo is needed for otaimg creation sota_xeon-d.bbclass sota_atom-c3000.bbclass: -set ROOTFS_sota to IMGDEPLOYDIR insted of DEPLOY_DIR_IMAGE, as this is where the otaimg is now created; also use IMAGE_LINK_NAME istead of IMAGE_NAME, to have the correct reference to the image, even if the image was built in a previous run (IMAGE_NAME differs in this case) Change-Id: I44e87311d1819b80d34f924630d09e429d411d41 Signed-off-by: Matei Valeanu <Matei.Valeanu@enea.com>
* Include UEFI certificates into the hddimgAdrian Dudau2019-06-131-0/+4
| | | | | Change-Id: I27cd60e16b0b9cc469af916842141de294bddd14 Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
* enea-nfv-access: remove aktualizr packages from imageMatei Valeanu2019-06-051-1/+3
| | | | | | | ostree is not dependant on the aktualizr packages Change-Id: Ib2118bac710fa4106b1c4f4ee65e2baf58bdbaa8 Signed-off-by: Matei Valeanu <Matei.Valeanu@enea.com>
* dpkg: move status files to /usr/dpkg/lib/dpkgMatei Valeanu2019-05-241-2/+2
| | | | | | | This is where ostree dpkg is now expecting the files to be Change-Id: Ifdb7d86f9a72b3a5bb59814439643fecc1aa78c1 Signed-off-by: Matei Valeanu <Matei.Valeanu@enea.com>
* Split grub_efi class overrideAdrian Dudau2019-05-233-28/+28
| | | | | | | | | Split the class override into generic changes and Secure Boot specific (efi_populate). This allows us to override the secureboot parts only if the efi-secure-boot distro feature is enabled. Change-Id: I68ab1a9eae2ffceecd057506ef493b4388ff5343 Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
* Implement efi-secure-boot as distro feature overrideAdrian Dudau2019-05-232-5/+11
| | | | | | | | | | | | This will allow us to override variables depending on this distro feature more easily. Make Secure Boot related changes apply only efi-secure-boot distro feature is enabled. This will avoid any errors when building without the feature enabled. Change-Id: If07256977a647386cd43c5940357a0dedc95f95d Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
* do_image_ostree: fix build issueMatei Valeanu2019-05-201-1/+1
| | | | | | | ostree_repo may exist even if not initialized Change-Id: Iae1d17114646128c74646cfb696f4db09638930b Signed-off-by: Matei Valeanu <Matei.Valeanu@enea.com>
* Override image_types_ostree classAdrian Dudau2019-05-132-0/+151
| | | | | | | | Override the class to install the kernel and initramfs signature files into the ostree image. Change-Id: I3cd9d1b0dcb2519802443d9a959a3b35e8a9a823 Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
* Override efi-populate function from grub-efi classAdrian Dudau2019-05-131-0/+28
| | | | | | | | This override is needed to install kernel and initramfs signature files onto the hddimg. Change-Id: Id1434b930312cc601ca2c1782c8b5b5699ce3fd6 Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
* Add Secure Boot supportAdrian Dudau2019-05-136-2/+31
| | | | | Change-Id: I09c9b0bad8e85e75fb1510ff374540fad3c3b5d1 Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
* set ramdisk size from kernel configSona Sarmadi2019-05-072-2/+2
| | | | | | | | We have big number of kernel params and at some point it will be difficult to maintain all kernel boot params. Change-Id: I51ba9d21e4c041fb7e77d618d7572704715a3a25 Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>
* disable the syslinux timeoutSona Sarmadi2019-05-071-2/+4
| | | | | | | | From syslinux doc: ”A timeout of zero will disable the timeout completely.” Change-Id: Ic71ed27ee1d2f9fecf2e9fab983848b65f569f04 Signed-off-by: Sona Sarmadi <sona.sarmadi@enea.com>